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

<p>How could achieve that?</p>

<p>Thank you</p>

<p>You can deploy the kube-state-metrics container that publishes the restart metric for pods: <a href="https://github.com/kubernetes/kube-state-metrics" rel="noreferrer">https://github.com/kubernetes/kube-state-metrics</a></p>

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

<p>The metric name is: <code>kube_pod_container_status_restarts_total</code>  </p>

<p>See all the pod metrics <a href="https://github.com/kubernetes/kube-state-metrics/tree/master/docs" rel="noreferrer">here</a></p>
