Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultsAndValidate ¶
Made this public so it can be called when converting config v1 to config v2.
Types ¶
type Config ¶
type Config struct {
Global *GlobalConfig `yaml:",omitempty"`
Input *InputConfig `yaml:",omitempty"`
Grok *GrokConfig `yaml:",omitempty"`
Metrics *MetricsConfig `yaml:",omitempty"`
Server *ServerConfig `yaml:",omitempty"`
}
type GlobalConfig ¶
type GlobalConfig struct {
ConfigVersion int `yaml:"config_version,omitempty"`
}
type GrokConfig ¶
type InputConfig ¶
type MetricConfig ¶
type MetricConfig struct {
Type string `yaml:",omitempty"`
Name string `yaml:",omitempty"`
Help string `yaml:",omitempty"`
Match string `yaml:",omitempty"`
Value string `yaml:",omitempty"`
Cumulative bool `yaml:",omitempty"`
Buckets []float64 `yaml:",flow,omitempty"`
Quantiles map[float64]float64 `yaml:",flow,omitempty"`
Labels map[string]string `yaml:",omitempty"`
LabelTemplates []templates.Template `yaml:"-"` // parsed version of Labels, will not be serialized to yaml.
ValueTemplate templates.Template `yaml:"-"` // parsed version of Value, will not be serialized to yaml.
}
func (*MetricConfig) InitTemplates ¶
func (metric *MetricConfig) InitTemplates() error
Made this public so MetricConfig can be initialized in tests.
type MetricsConfig ¶
type MetricsConfig []*MetricConfig
Click to show internal directories.
Click to hide internal directories.