From 4f3f70817c71830476496a4435949cac8d0cdb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Serv=C3=A9n=20Mar=C3=ADn?= Date: Tue, 13 Feb 2024 17:20:54 +0100 Subject: [PATCH] PodMonitor: remove now unneeded relabel config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ever since https://github.com/prometheus-operator/prometheus-operator/pull/5049, the relabel config workaround to ignore non-running pods is no longer needed. This commit cleans up the podmonitor to keep the code tidy. Signed-off-by: Lucas Servén Marín --- monitoring/configs/podmonitor.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/monitoring/configs/podmonitor.yaml b/monitoring/configs/podmonitor.yaml index d338f1f..21cbef2 100644 --- a/monitoring/configs/podmonitor.yaml +++ b/monitoring/configs/podmonitor.yaml @@ -22,8 +22,3 @@ spec: - image-reflector-controller podMetricsEndpoints: - port: http-prom - relabelings: - # https://github.com/prometheus-operator/prometheus-operator/issues/4816 - - sourceLabels: [__meta_kubernetes_pod_phase] - action: keep - regex: Running