package
1.8.2
Repository: https://github.com/andrejbranch/prometheus.git
Documentation: pkg.go.dev

# Functions

CheckTargetAddress checks if target address is valid.
Load parses the YAML input s into a Config.
LoadFile parses the given YAML file into a Config.
MustNewRegexp works like NewRegexp, but panics if the regular expression does not compile.
NewRegexp creates a new anchored Regexp and returns an error if the passed-in regular expression does not compile.

# Constants

The valid options for KubernetesRole.
The valid options for KubernetesRole.
The valid options for KubernetesRole.
The valid options for KubernetesRole.
The valid options for KubernetesRole.
OpenStack document reference https://docs.openstack.org/nova/pike/admin/arch.html#hypervisors.
OpenStack document reference https://docs.openstack.org/horizon/pike/user/launch-instances.html.
RelabelDrop drops targets for which the input does match the regex.
RelabelHashMod sets a label to the modulus of a hash of labels.
RelabelKeep drops targets for which the input does not match the regex.
RelabelLabelDrop drops any label matching the regex.
RelabelLabelKeep drops any label not matching the regex.
RelabelLabelMap copies labels to other labelnames based on a regex.
RelabelReplace performs a regex replacement.

# Variables

DefaultAlertmanagerConfig is the default alertmanager configuration.
DefaultAzureSDConfig is the default Azure SD configuration.
DefaultConfig is the default top-level configuration.
DefaultConsulSDConfig is the default Consul SD configuration.
DefaultDNSSDConfig is the default DNS SD configuration.
DefaultEC2SDConfig is the default EC2 SD configuration.
DefaultFileSDConfig is the default file SD configuration.
DefaultGCESDConfig is the default EC2 SD configuration.
DefaultGlobalConfig is the default global configuration.
DefaultKubernetesSDConfig is the default Kubernetes SD configuration.
DefaultMarathonSDConfig is the default Marathon SD configuration.
DefaultNerveSDConfig is the default Nerve SD configuration.
DefaultOpenstackSDConfig is the default OpenStack SD configuration.
DefaultQueueConfig is the default remote queue configuration.
DefaultRelabelConfig is the default Relabel configuration.
DefaultRemoteReadConfig is the default remote read configuration.
DefaultRemoteWriteConfig is the default remote write configuration.
DefaultScrapeConfig is the default scrape configuration.
DefaultServersetSDConfig is the default Serverset SD configuration.
DefaultTritonSDConfig is the default Triton SD configuration.

# Structs

AlertingConfig configures alerting and alertmanager related configs.
AlertmanagerConfig configures how Alertmanagers can be discovered and communicated with.
AzureSDConfig is the configuration for Azure based service discovery.
BasicAuth contains basic HTTP authentication credentials.
ClientCert contains client cert credentials.
Config is the top-level configuration for Prometheus's config files.
ConsulSDConfig is the configuration for Consul service discovery.
DNSSDConfig is the configuration for DNS based service discovery.
EC2SDConfig is the configuration for EC2 based service discovery.
FileSDConfig is the configuration for file based discovery.
GCESDConfig is the configuration for GCE based service discovery.
GlobalConfig configures values that are used across other configuration objects.
HTTPClientConfig configures an HTTP client.
KubernetesNamespaceDiscovery is the configuration for discovering Kubernetes namespaces.
KubernetesSDConfig is the configuration for Kubernetes service discovery.
MarathonSDConfig is the configuration for services running on Marathon.
NerveSDConfig is the configuration for AirBnB's Nerve in Zookeeper based discovery.
OpenstackSDConfig is the configuration for OpenStack based service discovery.
QueueConfig is the configuration for the queue used to write to remote storage.
Regexp encapsulates a regexp.Regexp and makes it YAML marshallable.
RelabelConfig is the configuration for relabeling of target label sets.
RemoteReadConfig is the configuration for reading from remote storage.
RemoteWriteConfig is the configuration for writing to remote storage.
ScrapeConfig configures a scraping unit for Prometheus.
ServersetSDConfig is the configuration for Twitter serversets in Zookeeper based discovery.
ServiceDiscoveryConfig configures lists of different service discovery mechanisms.
TargetGroup is a set of targets with a common label set.
TLSConfig configures the options for TLS connections.
TritonSDConfig is the configuration for Triton based service discovery.
URL is a custom URL type that allows validation at configuration load time.

# Type aliases

KubernetesRole is role of the service in Kubernetes.
OpenStackRole is role of the target in OpenStack.
RelabelAction is the action to be performed on relabeling.
Secret special type for storing secrets.