<p>Currently I am using the following query</p>
<pre><code>sum(rate(kube_pod_container_status_restarts_total{namespace=&quot;default&quot;}[5m]))
</code></pre>
<p>to get alerted when 1 or more container get restarted in default namespace.</p>
<p>This gives me the number of containers that restarted but not their names. Is there a way to get the name of containers that restarted?</p>
<p>Thanks you.</p>

Aalok
<p>Try the below query</p>
<pre><code>sum (changes (kube_pod_container_status_restarts_total[1m])) by (container,container_name,endpoint,instance,job,name,namespace, pod, pod_name,service)

</code></pre>
