-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Comments
@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? |
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 |
#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! |
Thanks 👍 |
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>
The text was updated successfully, but these errors were encountered: