Versions in this module Expand all Collapse all v1 v1.7.2 Feb 15, 2018 Changes in this version + var DefaultAlertmanagerConfig = AlertmanagerConfig + var DefaultConfig = Config + var DefaultGlobalConfig = GlobalConfig + var DefaultQueueConfig = QueueConfig + var DefaultRelabelConfig = RelabelConfig + var DefaultRemoteReadConfig = RemoteReadConfig + var DefaultRemoteWriteConfig = RemoteWriteConfig + var DefaultScrapeConfig = ScrapeConfig + func CheckTargetAddress(address model.LabelValue) error + type AlertingConfig struct + AlertRelabelConfigs []*RelabelConfig + AlertmanagerConfigs []*AlertmanagerConfig + XXX map[string]interface{} + func (c *AlertingConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type AlertmanagerConfig struct + HTTPClientConfig config_util.HTTPClientConfig + PathPrefix string + RelabelConfigs []*RelabelConfig + Scheme string + ServiceDiscoveryConfig sd_config.ServiceDiscoveryConfig + Timeout time.Duration + XXX map[string]interface{} + func (c *AlertmanagerConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type ClientCert struct + Cert string + Key config_util.Secret + XXX map[string]interface{} + type Config struct + AlertingConfig AlertingConfig + GlobalConfig GlobalConfig + RemoteReadConfigs []*RemoteReadConfig + RemoteWriteConfigs []*RemoteWriteConfig + RuleFiles []string + ScrapeConfigs []*ScrapeConfig + XXX map[string]interface{} + func Load(s string) (*Config, error) + func LoadFile(filename string) (*Config, error) + func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error + func (c Config) String() string + type FileSDConfig struct + Files []string + RefreshInterval model.Duration + XXX map[string]interface{} + type GlobalConfig struct + EvaluationInterval model.Duration + ExternalLabels model.LabelSet + ScrapeInterval model.Duration + ScrapeTimeout model.Duration + XXX map[string]interface{} + func (c *GlobalConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type QueueConfig struct + BatchSendDeadline time.Duration + Capacity int + MaxBackoff time.Duration + MaxRetries int + MaxSamplesPerSend int + MaxShards int + MinBackoff time.Duration + type Regexp struct + func MustNewRegexp(s string) Regexp + func NewRegexp(s string) (Regexp, error) + func (re *Regexp) UnmarshalYAML(unmarshal func(interface{}) error) error + func (re Regexp) MarshalYAML() (interface{}, error) + type RelabelAction string + const RelabelDrop + const RelabelHashMod + const RelabelKeep + const RelabelLabelDrop + const RelabelLabelKeep + const RelabelLabelMap + const RelabelReplace + func (a *RelabelAction) UnmarshalYAML(unmarshal func(interface{}) error) error + type RelabelConfig struct + Action RelabelAction + Modulus uint64 + Regex Regexp + Replacement string + Separator string + SourceLabels model.LabelNames + TargetLabel string + XXX map[string]interface{} + func (c *RelabelConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type RemoteReadConfig struct + HTTPClientConfig config_util.HTTPClientConfig + ReadRecent bool + RemoteTimeout model.Duration + RequiredMatchers model.LabelSet + URL *config_util.URL + XXX map[string]interface{} + func (c *RemoteReadConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type RemoteWriteConfig struct + HTTPClientConfig config_util.HTTPClientConfig + QueueConfig QueueConfig + RemoteTimeout model.Duration + URL *config_util.URL + WriteRelabelConfigs []*RelabelConfig + XXX map[string]interface{} + func (c *RemoteWriteConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type ScrapeConfig struct + HTTPClientConfig config_util.HTTPClientConfig + HonorLabels bool + JobName string + MetricRelabelConfigs []*RelabelConfig + MetricsPath string + Params url.Values + RelabelConfigs []*RelabelConfig + SampleLimit uint + Scheme string + ScrapeInterval model.Duration + ScrapeTimeout model.Duration + ServiceDiscoveryConfig sd_config.ServiceDiscoveryConfig + XXX map[string]interface{} + func (c *ScrapeConfig) UnmarshalYAML(unmarshal func(interface{}) error) error