Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Decoder runtime.Decoder
Decoder is a decoder for resources part of the `monitoring.coreos.com/v1{{beta,alpha}1} APIs.
Functions ¶
func ConfigObjectMeta ¶
func ConfigObjectMeta(name, namespace, prometheusName string) metav1.ObjectMeta
ConfigObjectMeta returns the object meta for a standard Prometheus config object (e.g., ServiceMonitor).
func NormalizedPodIPRelabelConfigs ¶
func NormalizedPodIPRelabelConfigs() []monitoringv1.RelabelConfig
NormalizedPodIPRelabelConfigs returns relabel configs that read the pod IP from Kubernetes metadata and normalize it to the __tmp_kubernetes_pod_ip label.
- IPv4 is passed through unchanged.
- IPv6 is wrapped in square brackets.
func StandardMetricRelabelConfig ¶
func StandardMetricRelabelConfig(allowedMetrics ...string) []monitoringv1.RelabelConfig
StandardMetricRelabelConfig returns the standard relabel config for metrics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.