You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sum(label_replace(kube_pod_status_phase{phase="Pending",pod=~"jupyter-.*"}, "repo", "$1", "pod", "jupyter-(.+)-[^-]+")) by (repo)
on Prometheus and I got
Based on the information that Prometheus provided, the information on Graphana is wrong because Graphana mentions 25 pending pods but Prometheus only reports 6.
I looked at Kubernetes and the number of pending pods is only 6 as reported by Prometheus.
But we have 19 "Terminating" pods:
My understanding is that Graphana is merging "Pending" and "Terminating". I looked at the expression used by Graphana
sum(kube_pod_status_phase{pod=~\"^jupyter-.*\", kubernetes_namespace!=\"jhub-ns\"}) by (phase)
This expression looks good to me. This means that the problem is at the metric exporting part.
When I look at Graphana, I see
I checked
on Prometheus and I got
Based on the information that Prometheus provided, the information on Graphana is wrong because Graphana mentions 25 pending pods but Prometheus only reports 6.
I looked at Kubernetes and the number of pending pods is only 6 as reported by Prometheus.
But we have 19 "Terminating" pods:
My understanding is that Graphana is merging "Pending" and "Terminating". I looked at the expression used by Graphana
This expression looks good to me. This means that the problem is at the metric exporting part.
In kubernetes/kube-state-metrics#1013, someone said
@sgibson91 and @manics can you help me to have the pod "Terminating" state exported? Thanks!
The text was updated successfully, but these errors were encountered: