Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultScrapeConfig = Config{ EntryParser: api.Docker, }
DefaultScrapeConfig is the default Config.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { JobName string `yaml:"job_name,omitempty"` EntryParser api.EntryParser `yaml:"entry_parser"` PipelineStages stages.PipelineStages `yaml:"pipeline_stages,omitempty"` JournalConfig *JournalTargetConfig `yaml:"journal,omitempty"` RelabelConfigs []*relabel.Config `yaml:"relabel_configs,omitempty"` ServiceDiscoveryConfig sd_config.ServiceDiscoveryConfig `yaml:",inline"` }
Config describes a job to scrape.
func (*Config) HasServiceDiscoveryConfig ¶
HasServiceDiscoveryConfig checks to see if the service discovery used for file targets is non-zero.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
type JournalTargetConfig ¶
type JournalTargetConfig struct { // Labels optionally holds labels to associate with each record coming out // of the journal. Labels model.LabelSet `yaml:"labels"` // Path to a directory to read journal entries from. Defaults to system path // if empty. Path string `yaml:"path"` }
JournalTargetConfig describes systemd journal records to scrape.
Click to show internal directories.
Click to hide internal directories.