package
Version:
v0.28.0
Opens a new window with list of versions in this module.
Published: Dec 21, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package promyaml shows how to get (Prometheus) configuration from YAML file.
Level: intermediate
Topics: yaml, tpg-tools
type GlobalConfig struct {
ScrapeInterval time.Duration `yaml:"scrape_interval"`
EvaluationInterval time.Duration `yaml:"evaluation_interval"`
ScrapeTimeout time.Duration `yaml:"scrape_timeout"`
ExternalLabels map[string]string `yaml:"external_labels"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.