1
0
Fork 0
mirror of https://github.com/fluxcd/flux2-monitoring-example.git synced 2024-12-14 10:47:31 +00:00

PodMonitor: remove now unneeded relabel config

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 <lserven@gmail.com>
This commit is contained in:
Lucas Servén Marín 2024-02-13 17:20:54 +01:00
parent bcae1ef449
commit 4f3f70817c
No known key found for this signature in database
GPG key ID: 586FEAF680DA74AD

View file

@ -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