-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add kube_pod_completion_time
to kube-state-metrics
#37206
Comments
This issue doesn't have a |
Hey @rudolf
could you please explain what are you trying to achieve? The problem here is that
then
But deletion of the pod do not cause reporting of this metric - issue Also if the container was restarted in the past because of the
Container status:
reported metrics regarding the Last State:
In Are you interested in |
@tetianakravchenko The problem is that we want to alert on pods that are OOMKilled or terminated due to Error. But since the last terminated reason is only cleared once the pod successfully starts, simply matching on pod events with a Providing the |
Closing as @rudolf has indicated this work is done |
Expose the
kube_pod_completion_time
from kube-state-metrics https://github.com/kubernetes/kube-state-metrics/blob/main/docs/pod-metrics.mdSince this captures the time a pod was terminated https://github.com/kubernetes/kube-state-metrics/blob/240cffd908220854a27f7e92d8157eaee4dc8d42/internal/store/pod.go#L103-L115 this is useful for alerting on terminated pods due to
Error
orOOMKilled
conditions.Related:
The text was updated successfully, but these errors were encountered: