06 Aug 2024
02:34 PM
- last edited on
20 Aug 2024
07:55 AM
by
MaciejNeumann
We are using Dynatrace Managed, so I need to use the API to accomplish this.
I have the metric key and entity_type, I want to lookup the namespaces generating the metric for every one with an entity_type of CLOUD_APPLICATION_INSTANCE. Why? so I can go to the app teams and ask them why they are sending all these metrics to Dynatrace.
Using the UI, I can get this by going to Data Explorer, pasting in the metric, adding a split and selecting Namespace.
I'd like to accomplish the same thing with the API. I only need the Namespace keys or ID's.
I have tried using api/v2/metrics/query, but I get a massive response with every dimension (and it's very slow). I need to look up 1000's of metrics, so efficiency is important.
Thanks in advance for any help.
02 Jan 2025 03:04 PM
Hi, @MarciaBeierle! Have you managed to find the answer to your question? It would be great if you share it with the Community 🙂