26 Feb 2024 03:51 PM - last edited on 27 Feb 2024 09:31 AM by MaciejNeumann
Hi Team,
I need the logic where i can create an alert in Dynatrace for when the pod count of any workload within a specific namespace is zero,. So, Need some guidance on the query
Solved! Go to Solution.
26 Feb 2024 04:47 PM
You can use the builtin metric "builtin:kubernetes.pods", https://docs.dynatrace.com/docs/observe-and-explore/metrics/built-in-metrics#other-kubernetes-metric...
Then use the Metric Event to create a rule based on your needs, filtering by namespace dimension,
https://docs.dynatrace.com/docs/shortlink/metric-events
26 Feb 2024 08:44 PM
Hi @Tek_nayak,
I do not know what is the purpose of your request to count the pods. Sorry if I missunderstood you. Maybe you can use this in built anomaly detection rule.
Best regards,
Mizső
26 Feb 2024 08:46 PM
That's even smarter!!
26 Feb 2024 08:51 PM
The goal is to trigger the alert when any of the pods becomes zero for any of the workload with in the name space ....I have the same alert rule in grafana ...I need to migrate same logic over dynatrace
27 Feb 2024 08:42 AM
Abraham Maslow's law: “If the only tool you have is a hammer, you tend to see every problem as a nail.” 🙂
Don't try to replicate the logic if you have different tools.
Try to understand what pain point you are trying to solve and use what you have in Dynatrace.