Versions in this module Expand all Collapse all v1 v1.8.2 Nov 4, 2017 Changes in this version + var DefaultAlertmanagerConfig = AlertmanagerConfig + var DefaultAzureSDConfig = AzureSDConfig + var DefaultConfig = Config + var DefaultConsulSDConfig = ConsulSDConfig + var DefaultDNSSDConfig = DNSSDConfig + var DefaultEC2SDConfig = EC2SDConfig + var DefaultFileSDConfig = FileSDConfig + var DefaultGCESDConfig = GCESDConfig + var DefaultGlobalConfig = GlobalConfig + var DefaultKubernetesSDConfig = KubernetesSDConfig + var DefaultMarathonSDConfig = MarathonSDConfig + var DefaultNerveSDConfig = NerveSDConfig + var DefaultOpenstackSDConfig = OpenstackSDConfig + var DefaultQueueConfig = QueueConfig + var DefaultRelabelConfig = RelabelConfig + var DefaultRemoteReadConfig = RemoteReadConfig + var DefaultRemoteWriteConfig = RemoteWriteConfig + var DefaultScrapeConfig = ScrapeConfig + var DefaultServersetSDConfig = ServersetSDConfig + var DefaultTritonSDConfig = TritonSDConfig + 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 HTTPClientConfig + PathPrefix string + RelabelConfigs []*RelabelConfig + Scheme string + ServiceDiscoveryConfig ServiceDiscoveryConfig + Timeout time.Duration + XXX map[string]interface{} + func (c *AlertmanagerConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type AzureSDConfig struct + ClientID string + ClientSecret Secret + Port int + RefreshInterval model.Duration + SubscriptionID string + TenantID string + XXX map[string]interface{} + func (c *AzureSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type BasicAuth struct + Password Secret + Username string + XXX map[string]interface{} + func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error + type ClientCert struct + Cert string + Key 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 ConsulSDConfig struct + Datacenter string + Password Secret + Scheme string + Server string + Services []string + TLSConfig TLSConfig + TagSeparator string + Token Secret + Username string + XXX map[string]interface{} + func (c *ConsulSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type DNSSDConfig struct + Names []string + Port int + RefreshInterval model.Duration + Type string + XXX map[string]interface{} + func (c *DNSSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type EC2SDConfig struct + AccessKey string + Port int + Profile string + RefreshInterval model.Duration + Region string + RoleARN string + SecretKey Secret + XXX map[string]interface{} + func (c *EC2SDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type FileSDConfig struct + Files []string + RefreshInterval model.Duration + XXX map[string]interface{} + func (c *FileSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type GCESDConfig struct + Filter string + Port int + Project string + RefreshInterval model.Duration + TagSeparator string + XXX map[string]interface{} + Zone string + func (c *GCESDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + 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 HTTPClientConfig struct + BasicAuth *BasicAuth + BearerToken Secret + BearerTokenFile string + ProxyURL URL + TLSConfig TLSConfig + XXX map[string]interface{} + type KubernetesNamespaceDiscovery struct + Names []string + XXX map[string]interface{} + func (c *KubernetesNamespaceDiscovery) UnmarshalYAML(unmarshal func(interface{}) error) error + type KubernetesRole string + const KubernetesRoleEndpoint + const KubernetesRoleIngress + const KubernetesRoleNode + const KubernetesRolePod + const KubernetesRoleService + func (c *KubernetesRole) UnmarshalYAML(unmarshal func(interface{}) error) error + type KubernetesSDConfig struct + APIServer URL + BasicAuth *BasicAuth + BearerToken Secret + BearerTokenFile string + NamespaceDiscovery KubernetesNamespaceDiscovery + Role KubernetesRole + TLSConfig TLSConfig + XXX map[string]interface{} + func (c *KubernetesSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type MarathonSDConfig struct + BearerToken Secret + BearerTokenFile string + RefreshInterval model.Duration + Servers []string + TLSConfig TLSConfig + Timeout model.Duration + XXX map[string]interface{} + func (c *MarathonSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type NerveSDConfig struct + Paths []string + Servers []string + Timeout model.Duration + XXX map[string]interface{} + func (c *NerveSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type OpenStackRole string + const OpenStackRoleHypervisor + const OpenStackRoleInstance + func (c *OpenStackRole) UnmarshalYAML(unmarshal func(interface{}) error) error + type OpenstackSDConfig struct + DomainID string + DomainName string + IdentityEndpoint string + Password Secret + Port int + ProjectID string + ProjectName string + RefreshInterval model.Duration + Region string + Role OpenStackRole + UserID string + Username string + XXX map[string]interface{} + func (c *OpenstackSDConfig) 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 HTTPClientConfig + RemoteTimeout model.Duration + URL *URL + XXX map[string]interface{} + func (c *RemoteReadConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type RemoteWriteConfig struct + HTTPClientConfig HTTPClientConfig + QueueConfig QueueConfig + RemoteTimeout model.Duration + URL *URL + WriteRelabelConfigs []*RelabelConfig + XXX map[string]interface{} + func (c *RemoteWriteConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type ScrapeConfig struct + HTTPClientConfig 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 ServiceDiscoveryConfig + XXX map[string]interface{} + func (c *ScrapeConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type Secret string + func (s *Secret) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s Secret) MarshalYAML() (interface{}, error) + type ServersetSDConfig struct + Paths []string + Servers []string + Timeout model.Duration + XXX map[string]interface{} + func (c *ServersetSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type ServiceDiscoveryConfig struct + AzureSDConfigs []*AzureSDConfig + ConsulSDConfigs []*ConsulSDConfig + DNSSDConfigs []*DNSSDConfig + EC2SDConfigs []*EC2SDConfig + FileSDConfigs []*FileSDConfig + GCESDConfigs []*GCESDConfig + KubernetesSDConfigs []*KubernetesSDConfig + MarathonSDConfigs []*MarathonSDConfig + NerveSDConfigs []*NerveSDConfig + OpenstackSDConfigs []*OpenstackSDConfig + ServersetSDConfigs []*ServersetSDConfig + StaticConfigs []*TargetGroup + TritonSDConfigs []*TritonSDConfig + XXX map[string]interface{} + func (c *ServiceDiscoveryConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type TLSConfig struct + CAFile string + CertFile string + InsecureSkipVerify bool + KeyFile string + ServerName string + XXX map[string]interface{} + func (c *TLSConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type TargetGroup struct + Labels model.LabelSet + Source string + Targets []model.LabelSet + func (tg *TargetGroup) UnmarshalJSON(b []byte) error + func (tg *TargetGroup) UnmarshalYAML(unmarshal func(interface{}) error) error + func (tg TargetGroup) MarshalYAML() (interface{}, error) + func (tg TargetGroup) String() string + type TritonSDConfig struct + Account string + DNSSuffix string + Endpoint string + Port int + RefreshInterval model.Duration + TLSConfig TLSConfig + Version int + XXX map[string]interface{} + func (c *TritonSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type URL struct + func (u *URL) UnmarshalYAML(unmarshal func(interface{}) error) error + func (u URL) MarshalYAML() (interface{}, error)