package
1.7.2
Repository: https://github.com/tao-network/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

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.
DefaultConfig is the default top-level configuration.
DefaultGlobalConfig is the default global 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.

# Structs

AlertingConfig configures alerting and alertmanager related configs.
AlertmanagerConfig configures how Alertmanagers can be discovered and communicated with.
ClientCert contains client cert credentials.
Config is the top-level configuration for Prometheus's config files.
FileSDConfig is the configuration for file based discovery.
GlobalConfig configures values that are used across other configuration objects.
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.

# Type aliases

RelabelAction is the action to be performed on relabeling.