23 Dec 2025 10:12 PM
what is the best way to get alert when a Kubernetes pod/container get restarted?
Solved! Go to Solution.
24 Dec 2025 11:29 AM
Hi,
If you are monitoring Kubernetes API, you can use out-the-box workload alerts.
Best regards
12 Jan 2026 03:03 PM
We are not able to get the alert after turning on the container restart anomaly detection for workload.
16 Jan 2026 08:34 PM
Creating a Metric event on a 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
Featured Posts