From b967183414e68bbe20d2ae7e472b54f5d2de0fc0 Mon Sep 17 00:00:00 2001 From: Sebastian Widmer Date: Tue, 24 Jan 2023 09:59:00 +0100 Subject: [PATCH] Keep only `ocp_drain_monitor_.+` metrics by default --- config/prometheus/monitor.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/prometheus/monitor.yaml b/config/prometheus/monitor.yaml index 64a8be5..fb279fd 100644 --- a/config/prometheus/monitor.yaml +++ b/config/prometheus/monitor.yaml @@ -21,6 +21,11 @@ spec: bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token tlsConfig: insecureSkipVerify: true + metricRelabelings: + - action: keep + regex: ocp_drain_monitor_.+ + sourceLabels: + - __name__ selector: matchLabels: control-plane: controller-manager