# How do I monitor a kubernetes POD restart

**URL:** <https://community.dynatrace.com/t/how-do-i-monitor-a-kubernetes-pod-restart/54481>\
**Category:** Container platforms\
**Tags:** cloudnative, kubernetes\
**Created:** [December 23, 2025, 10:12pm UTC](https://community.dynatrace.com/t/how-do-i-monitor-a-kubernetes-pod-restart/54481 "2025-12-23T22:12:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![susmita\_k](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@susmita\_k](https://community.dynatrace.com/u/susmita_k)\
**Post date:** [December 23, 2025, 10:12pm UTC](https://community.dynatrace.com/t/how-do-i-monitor-a-kubernetes-pod-restart/54481/1 "2025-12-23T22:12:18Z")

</div>

what is the best way to get alert when a Kubernetes pod/container get restarted?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [December 24, 2025, 11:29am UTC](https://community.dynatrace.com/t/how-do-i-monitor-a-kubernetes-pod-restart/54481/2 "2025-12-24T11:29:29Z")

</div>

Hi,

If you are monitoring Kubernetes API, you can use out-the-box [workload alerts](https://docs.dynatrace.com/docs/shortlink/k8s-reference-anomaly#workload).

Best regards

---

<div class="post-metadata">

**Author:** ![susmita\_k](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@susmita\_k](https://community.dynatrace.com/u/susmita_k)\
**Post date:** [January 12, 2026, 3:03pm UTC](https://community.dynatrace.com/t/how-do-i-monitor-a-kubernetes-pod-restart/54481/3 "2026-01-12T15:03:45Z")

</div>

We are not able to get the alert after turning on the container restart anomaly detection for workload.

---

<div class="post-metadata">

**Author:** ![dyn98007](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dyn98007](https://community.dynatrace.com/u/dyn98007)\
**Post date:** [January 16, 2026, 8:34pm UTC](https://community.dynatrace.com/t/how-do-i-monitor-a-kubernetes-pod-restart/54481/4 "2026-01-16T20:34:58Z")

</div>

Creating a **Metric even** t on a&nbsp; query (like the example below) , and using that to Alert based on an appropriate threshold helped in my case.

_builtin:kubernetes.container.restarts:filter(and(or(in(“dt.entity.cloud\_application\_namespace”,entitySelector(“type(cloud\_application\_namespace),entityName.equals(~“eventservice~”)”))))):splitBy(“dt.entity.cloud\_application”,“dt.entity.cloud\_application\_instance”):sort(value(auto,descending)):limit(20)_

Please validate the query in Data explorer. Screenshot attached

 ![Screenshot 2025-10-16 at 3.25.17 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1f6db79a2cdf3f431e53eb54c032721ed4f7b496.png)
