Skip to content

Commit

Permalink
PodMonitor: remove now unneeded relabel config
Browse files Browse the repository at this point in the history
Ever since
prometheus-operator/prometheus-operator#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>
  • Loading branch information
squat committed Feb 13, 2024
1 parent bcae1ef commit 4f3f708
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions monitoring/configs/podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4f3f708

Please sign in to comment.