fluxcd-community / helm-charts

Community maintained Helm charts for Flux
Apache License 2.0
121 stars 76 forks source link

Filter out non-running pods in Prometheus #121

Closed acondrat closed 2 years ago

acondrat commented 2 years ago

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 to PodMonitor implementation and is discussed in https://github.com/prometheus-operator/prometheus-operator/issues/4816

Which issue this PR fixes

N/A

Special notes for your reviewer:

N/A

Checklist