Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kube_pod_status_reason metric add Preempting reason #2595

Open
zou-weidong opened this issue Jan 24, 2025 · 1 comment
Open

kube_pod_status_reason metric add Preempting reason #2595

zou-weidong opened this issue Jan 24, 2025 · 1 comment
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.

Comments

@zou-weidong
Copy link

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:
Image

@zou-weidong zou-weidong added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 24, 2025
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jan 24, 2025
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants