Prometheus Pods restart in grafana

10/19/2018

I would like to have a Prometheus plot in Grafana to show (as a column chart) the number of restarts of the pods

How could achieve that?

Thank you

-- BlackBishop
grafana
kubernetes
prometheus

1 Answer

10/19/2018

You can deploy the kube-state-metrics container that publishes the restart metric for pods: https://github.com/kubernetes/kube-state-metrics

The metrics are exported through the Prometheus golang client on the HTTP endpoint /metrics on the listening port (default 80).

The metric name is: kube_pod_container_status_restarts_total

See all the pod metrics here

-- Ijaz Ahmad Khan
Source: StackOverflow