Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeriskopConfig ¶
type PeriskopConfig struct { Services []Service `yaml:"services"` Repository Repository `yaml:"repository"` }
func Load ¶
func Load(s string) (*PeriskopConfig, error)
Load parses the YAML input s into a Config.
func LoadFile ¶
func LoadFile(filename string) (*PeriskopConfig, error)
LoadFile parses the given YAML file into a Config.
type Repository ¶
type Service ¶
type Service struct { Name string `yaml:"name"` ServiceDiscovery prometheus_discovery_config.ServiceDiscoveryConfig `yaml:",inline"` Scraper Scraper `yaml:"scraper"` RelabelConfigs []*prometheus_relabel.Config `yaml:"relabel_configs,omitempty"` }
Click to show internal directories.
Click to hide internal directories.