# Functions
FilterInvalidServices takes a list of Kubernetes Services, and returns a list of valid Services.
GetClusterID returns the value of the cluster annotation.
GetScrapeConfigs takes a list of Kubernetes Services, and returns a list of Prometheus ScrapeConfigs.
IsExecutionFailed asserts executionFailedError.
IsInvalidConfig asserts invalidConfigError.
UpdateConfig takes an existing Prometheus configuration, and a list of Prometheus scrape configurations.
# Constants
ActionDrop is action type that drops matching metrics.
ActionKeep is action type that keeps only matching metrics.
ActionRelabel is action type that relabel metrics.
APIServerJobType is the job type for scraping Kubernetes API servers.
AWSNodeAppName is the label value for aws-node targets.
AWSNodeJobType is the job type for scraping aws-node Pods.
CadvisorAppName is the label value for Cadvisor targets.
CadvisorJobType is the job type for scraping Cadvisor.
CadvisorMetricsPath is the path under which cadvisor metrics can be scraped.
CalicoNodeAppName is the label value for calico-node targets.
CalicoNodeJobType is the job type for scraping calico-node pods.
ClusterAnnotation is the Kubernetes annotation that identifies Services that the prometheus-config-controller should scrape.
DockerAppName is the label value for Docker targets.
DockerDaemonJobType is the job type for scraping docker daemon.
DockerMetricsPath is the path under which docker metrics can be scraped.
EtcdJobType is the job type for scraping etcd.
GroupCapture is the regular expression to match against the first capture group.
GuestClusterType is the cluster type for guest clusters.
HttpScheme is the scheme for http connections.
HttpsScheme is the scheme for https connections.
IngressJobType is the job type for scraping the ingress controller.
KubeletAppName is the label value for kubelets.
KubeletJobType is the job type for scraping kubelets.
NodeExporterAppName is the label value for node-exporters.
KubeProxyJobType is the job type for scraping node-exporters.
KubernetesAppName is the label value for Kubernetes API servers.
KubeStateManagedAppJobType is the job type for scraping kube-state-metrics-provided endpoints for managed apps.
ManagedAppJobType is the job type for scraping managed app metrics.
ManagedAppsDaemonSet is the value used to indicate a managed app workload of type DaemonSet.
ManagedAppsDeployment is the value used to indicate a managed app workload of type Deployment.
ManagedAppsStatefulSet is the value used to indicate a managed app workload of type StatefulSet.
NodeExporterAppName is the label value for node-exporters.
NodeExporterJobType is the job type for scraping node-exporters.
NodeExporterPort is the path under which node-exporter metrics can be scraped.
WorkerRole is the label value used for Kubernetes workers.
WorkloadJobType is the job type for scraping general workloads.
# Variables
AddressLabel is the label used to hold target ip and port.
APIServerRegexp is the regular expression to match against Kubernetes API servers.
AppIsManaged is the label used to mark metrics coming from managed apps marked with "giantswarm.io/monitoring" k8s annotation.
AppLabel is the label used to hold the application's name.
AppTypeLabel is the label used to hold the type of managed application (optional, default), if applicable.
AWSNodePodNameRegexp is the regular expression to match aws-node pod name.
AWSNodePodRegexp is the regular expression to match aws-node pod name and namespace.
CalicoNodePodNameRegexp is the regular expression to match calico-node pod name.
CalicoNodePodRegexp is the regular expression to match calico-node pod name and namespace.
CertExporterPodNameRegexp is the regular expression to match cert-exporter pod name.
ChartOperatorPodNameRegexp is the regular expression to match chart-operator pod name.
ClusterAutoscalerPodNameRegexp is the regular expression to match cluster-autoscaler pod name.
ClusterIDLabel is the label used to hold the cluster's ID.
ClusterTypeLabel is the label used to hold the cluster's type.
CoreDNSPodNameRegexp is the regular expression to match coredns pod name.
DaemonSetTypeLabel is a label added by kube-state-metrics to DaemonSet related metrics.
DeploymentTypeLabel is a label added by kube-state-metrics to Deployment related metrics.
DockerMetricsNameRegexp is the regular expression to keep only Docker metrics which we need for performance tracking.
ElasticLoggingPodNameRegexp is the regular expression to match elastic-logging-elasticsearch-exporter pod name.
EmptyRegexp is the regular expression to match against the empty string.
ExportedNamespaceLabel is the label used to hold the application's namespace.
IngressWhitelistRegexp is the regular expression to match workload targets to scrape.
IPLabel is the label used to hold the machine's IP.
KiamPodNameRegexp is the regular expression to match kiam pod name.
KubeletPortRegexp is the regular expression to match against the Kubelet IP (including port), and capture the IP.
KubeProxyPodNameRegexp is the regular expression to match kube-proxy pod name.
KubernetesSDNamespaceLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes namespace.
KubernetesSDNodeAddressInternalIPLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes node addres internal IP.
KubernetesSDNodeLabelRole is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes node role label.
KubernetesSDNodeNameLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes node name.
KubernetesSDPodNameLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes pod name.
KubernetesSDPodNodeNameLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes pod node name.
KubernetesSDServiceGiantSwarmMonitoringAppTypeLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes service type of managed application (default, optional).
KubernetesSDServiceGiantSwarmMonitoringLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes service presenting the annotation giantswarm_io_monitoring as true.
KubernetesSDServiceGiantSwarmMonitoringPathLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes service path.
KubernetesSDServiceGiantSwarmMonitoringPathPresentLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes service presenting the annotation giantswarm_io_monitoring_path.
KubernetesSDServiceGiantSwarmMonitoringPortLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes service port number.
KubernetesSDServiceGiantSwarmMonitoringPortPresentLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes service presenting the annotation giantswarm_io_monitoring_port.
KubernetesSDServiceGiantSwarmMonitoringPresentLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes service presenting the annotation giantswarm_io_monitoring.
KubernetesSDServiceNameLabel is the label applied to the target by Prometheus Kubernetes service discovery that holds the target's Kubernetes service.
KubeStateMetricsForManagedApps is the label used to mark metrics coming from kube-state-metrics for use with managed apps.
KubeStateMetricsManagedAppMetricsNameRegexp is the regular expression to keep only KSM metrics realted to SLI of managed apps.
KubeStateMetricsPodNameRegexp is the regular expression to match kube-state-metrics pod name.
KubeStateMetricsServiceNameRegexpis the regular expression to match kube-state-metrics service name.
Regular expressions.
ManagedAppWorkloadNameLabel is the label for storing any workload's name.
ManagedAppWorkloadTypeLabel is the label for showing the workload type (deployment, statefulset, daemonset) of a managed app.
MetricDropBucketLatencies is the regular expression to match against the several bucket latencies metrics.
MetricDropContainerNetworkRegexp is the regular expression to match againts cadvisor container network metrics.
MetricDropFStypeRegexp is the regular expression to match againts not interesting filesystem (for node exporter metrics).
MetricDropSystemdNameRegexp is the regular expression to match against not interesting systemd units(docker mounts and calico network devices).
MetricDropSystemdStateRegexp is the regular expression to match against not interesting systemd unit (for node exporter metrics).
MetricExportedNamespaceLabel is label for filtering by k8s namespace in kube-state-metric.
MetricFSTypeLabel is a label for filtering by mount filesystem type.
MetricKeepICRegexp is the regular expression to match against metric exposed by IC with low cardinality.
MetricNameLabel is label for filtering by metric name.
MetricNamespaceLabel is label for filtering by k8s namespace.
MetricPathLabel is the label used to hold the scrape metrics path.
MetricsDropReflectorRegexp is the regular expression to match against spammy reflector metrics returned by the Kubelet.
MetricsDropReflectorRegexp is the regular expression to match against spammy reflector metrics returned by the Kubelet.
MetricSystemdNameLabel is a label for filtering by systemd unit name.
MetricSystemdStateLabel is a label for filtering by systemd unit state.
NamespaceKubeSystemLabel is the label for kube-system namespace.
NamespaceLabel is the label used to hold the application's namespace.
NetExporterPodNameRegexp is the regular expression to match net-exporter pod name.
NginxIngressControllerPodNameRegexp is the regular expression to match nginx ic pod name.
NicExporterPodNameRegexp is the regular expression to match nic-exporter pod name.
NodeExporterPortRegexp is the regular expression to match against the node-exporter IP (including port), and capture the IP.
NodeExporterRegexp is the regular expression to match against the node-exporter name.
NodeLabel is the label used to hold the node name.
NonEmptyRegexp is the regular expression to match against the non-empty string.
NSRegexp is the regular expression to match against the specified namespaces.
PodNameLabel is the label used to hold the pod name.
PodSDContainerNameLabel is a label applied to the target by Prometheus POD service discovery that holds the target's POD container name.
PodSDNamespaceLabel is the label applied to the target by Prometheus POD service discovery that holds the target's Kubernetes namespace.
PodSDPodNameLabel is the label applied to the target by Prometheus POD service discovery that holds the target's Kubernetes POD name.
RelabelNamespaceRegexp is the regular expression to match against metrics with empty exported_namespace and namespace kube-system.
RoleLabel is the label used to hold the machine's role.
ServiceWhitelistRegexp is the regular expression to match workload targets to scrape.
StatefulSetTypeLabel is a label added by kube-state-metrics to StatefulSet related metrics.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VaultExporterPodNameRegexp is the regular expression to match against the vault-exporter name.