kube_pod_status_reason metric add Preempting reason #2595
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What would you like to be added:
Add ‘Preempting ’ reason to kube_pod_status_reason
Why is this needed:
We have an alert for pods that are not ready for a long time(Use prometheus-operator by default to have the alert KubePodNotReady ). I want to eliminate some situations, including Evicted and Preempting. However, there is no Preempting in the current reason.
Describe the solution you'd like
kube_pod_status_reason | Gauge | The pod status reasons |
reason=<Evicted|NodeAffinity|NodeLost|Shutdown|UnexpectedAdmissionError>
Add Preempting
The kubernetes code:
The text was updated successfully, but these errors were encountered: