Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBSettings ¶
type Metric ¶
type Metric struct {
Name string `yaml:"name"`
Query string `yaml:"query"`
Type MetricType `yaml:"type"`
Values []string `yaml:"values"`
Labels []string `yaml:"labels"`
}
type MetricExecutor ¶
type MetricExecutor interface {
Run() error
}
type MetricType ¶
type MetricType = string
const ( MetricTypeGauge MetricType = "gauge" MetricTypeHistogram MetricType = "histogram" MetricTypeSummary MetricType = "summary" )
type MetricsJob ¶
type MetricsJob struct {
DB DBSettings `yaml:"db"`
Period time.Duration `yaml:"period"`
Metrics []Metric `yaml:"metrics"`
}
type Settings ¶
type Settings struct {
Host string `yaml:"host"`
Path string `yaml:"path"`
Jobs []MetricsJob `yaml:"jobs"`
}
Click to show internal directories.
Click to hide internal directories.