# Functions
EnvToPrometheusFlags converts environmental variables into a string of flags to be used with prometheus v2 CLI.
GetAlertConfig returns Prometheus configuration snippet related to alerts.
WriteConfig creates Prometheus configuration at configPath and writes alerts into /etc/prometheus/alert.rules.
# Structs
Alert defines data used to create alert configuration snippet.
AlertingConfig configures alerting and alertmanager related configs.
AlertmanagerConfig configures how Alertmanagers can be discovered and communicated with.
BasicAuth contains basic HTTP authentication credentials.
Config is the top-level configuration for Prometheus's config files.
DNSSDConfig is the configuration for DNS based service discovery.
GlobalConfig configures values that are used across other configuration objects.
HTTPClientConfig configures an HTTP client.
NodeIP defines a node/addr pair.
QueueConfig is the configuration for the queue used to write to remote storage.
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.
Scrape defines data used to create scraping configuration snippet.
ScrapeConfig configures a scraping unit for Prometheus.
SDConfig is the configuration for file based discovery.
ServiceDiscoveryConfig configures lists of different service discovery mechanisms.
TargetGroup is a set of targets with a common label set(production , test, staging etc.).
TLSConfig configures the options for TLS connections.
# Type aliases
FileStaticConfig configures File-based service discovery.
NodeIPSet is a set of NodeIPs.