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
You can use the builtin metric “builtin:kubernetes.pods”, Built-in classic metrics — Dynatrace Docs
Then use the Metric Event to create a rule based on your needs, filtering by namespace dimension,
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ő
That’s even smarter!!
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
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.

