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 can't come on Prometheus #1158

Closed
ebrudalkir opened this issue Jun 18, 2020 · 4 comments
Closed

kube_pod_status_reason metric can't come on Prometheus #1158

ebrudalkir opened this issue Jun 18, 2020 · 4 comments

Comments

@ebrudalkir
Copy link

ebrudalkir commented Jun 18, 2020

I want to set alarm if pod's status evicted. But kube_pod_status_reason metric can't come on Prometheus. Just this metrics shown Evicted status. How can solve this problem?

kube_pod_status_reason

pod=
namespace=
reason=<NodeLost|Evicted|UnexpectedAdmissionError>

@lilic
Copy link
Member

lilic commented Jul 9, 2020

@ebrudalkir Can you clarify what you are having problems with. Is it that you cannot see the kube_pod_status_reason label having Evicted status?

@nickytd
Copy link

nickytd commented Jul 13, 2020

Same here. Just installed prometheus-operator 8.16.1 which requires kube-state-metrics-2.8.10 helm chart which brings kube-state-metrics:v1.9.7 with pod collector enabled. However upon scratching the endpoint not kube_pod_status_reason is present. Although there are pods in Evicted sates which should be noted by the metric above. K8S version is 1.17.7 in my case. And the same can be easily reproduced with minikube setup and K8S v1.18.3 minikube sample setup

@lilic
Copy link
Member

lilic commented Jul 13, 2020

#1013 This is because that metric is only present in master and will be added to the 2.0 kube-state-metric release. Closing this issue, as its normal for it to not be on 1.9.x release. If its not showing up in master kube-state-metrics version please reopen the issue, thanks!

@lilic lilic closed this as completed Jul 13, 2020
@nickytd
Copy link

nickytd commented Jul 13, 2020

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants