Prometheus job generated by the PodMonitor does not exclude non-running pods. All the "completed" Pods are going to be listed as targets in Prometheus and marked as down. This issue is related to PodMonitor implementation and is discussed in https://github.com/prometheus-operator/prometheus-operator/issues/4816
Signed-off-by: Arcadie Condrat arcadie.condrat@gmail.com
What this PR does / why we need it:
Prometheus job generated by the
PodMonitor
does not exclude non-running pods. All the "completed" Pods are going to be listed as targets in Prometheus and marked as down. This issue is related toPodMonitor
implementation and is discussed in https://github.com/prometheus-operator/prometheus-operator/issues/4816Which issue this PR fixes
N/A
Special notes for your reviewer:
N/A
Checklist
make reviewable