cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I need some help associating Billable Metrics from Prometheus with namespace they came from

MarciaBeierle
Frequent Guest

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.

1 REPLY 1

GosiaMurawska
Community Team
Community Team

Hi, @MarciaBeierle! Have you managed to find the answer to your question? It would be great if you share it with the Community 🙂

Featured Posts