package
Version:
v0.0.0-...-197aa00
Opens a new window with list of versions in this module.
Published: Jul 27, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type GlbConfig struct {
ScrapeInterval time.Duration `yaml:"scrape_interval"`
ScrapeTimeout time.Duration `yaml:"scrape_timeout"`
EvaluationInternal time.Duration `yaml:"evaluation_interval"`
ExternalLabels map[string]string `yaml:"external_labels"`
}
type PromConfig struct {
Global GlbConfig `yaml:"global"`
ScrapeConfigs []PromJob `yaml:"scrape_configs"`
}
type PromJob struct {
JobName string `yaml:"job_name"`
ScrapeInterval time.Duration `yaml:"scrape_interval"`
StaticConfigs []SConfigs `yaml:"static_configs"`
ScrapeTimeout time.Duration `yaml:"scrape_timeout"`
}
func (r *R) StartPrometheus() error
type SConfigs struct {
Targets []string `yaml:"targets"`
}
type SrpConfigs struct {
Jobs []PromJob
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.