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
"Evicted" pods don't register metrics #1389
Comments
Which metric did you expect to be there but wasn't? |
@brancz All |
Hi, I can confirm we are also experiencing the same issue with |
Can confirm this is happening in our cluster right now too
But the metrics never show a value of
|
Same, but we are using kube_pod_container_status_last_terminated_reason (#344), though since evicted pods seem to stick around and a new one is created, either one should work I guess. We have some alerts, and |
Expiriencing the same! |
We expiriencing the same problem |
+1 |
+1 Looks like we also met this issue. |
Hi @brancz |
any progress on this issue? |
+1 |
Same issue with Looking at a pod on the cluster I see:
and I see the pods in these metrics:
but I do not see these pods when looking at terminated metrics like
|
I tried Example query I will try to figure out why Evicted reason is not registered in metric like other reasons |
@yfried This is a bug with the version you are running where KSM conflates pod and container states. This should be fixed in versions 2.0.0 and later. The metric containing this information is Since 1.x.x has other issues according to the compatibility matrix, are you able to upgrade KSM to one of the 2.x.x versions? Also keep in mind that only pods can have the |
Does v1.9.8 fix this problem? And can v1.9.8 be used on k8s v1.16? |
Unfortunately v1.9.8 does not fix this problem, it's only fixed in 2.0.0 and onward. Are you running Kubernetes 1.16? |
Yeah, we running v1.16, and no plan to update k8s version currently... |
This is the commit which adds the We can try to backport parts of it to v1.9.8 but I am not sure what the current support policy is for pre 2.0.0 versions. Maybe @tariq1890 or @mrueg could provide their input before we raise the PR. |
My personal thoughts here: I would still consider v1.9.x "community supported", which means no active feature development, backports etc. |
good night I could do it with the following metric
|
+1 |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
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/test-infra repository. |
What happened:
I have many pods with Evicted state:
But no metric with
reason=Evicted
. The following query returns empty for the last weekWhat you expected to happen:
I expected the above query to return with metrics of the evicted pods.
How to reproduce it (as minimally and precisely as possible):
Check that evicted nodes exist and then query prometheus as mentioned above
Environment:
kubectl version
): 1.18The text was updated successfully, but these errors were encountered: