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

Dynatrace V2 API - Is it Possible to Get a List of Only Collected Metrics Available?

louis_gallo
Participant

Is it Possible to Get a List of Only Collected Metrics Available?

 

Thanks,

 

Lou

5 REPLIES 5

My apologies, I worded my question incorrectly. Is there a way to see which of those metrics is actually turned on? I have the list of metrics, but when I collect some, no data is returned. For example, if I try to collect 'builtin:host.disk.(readTime)', I get no data back, so I assume its not enabled.

Disk read time is one of those metrics that should be collected by default for any Host. It shouldn't need any special setup. Maybe you get no data because some other parts of the API call. Could you share the API request you are making?



Best regards,
Radu

Hi,
have you considered using the metric browser with the filter option for "metric last reported":

robert_schausbe_0-1618822575972.png


This option is also available via API and the WrittenSince Parameter:
https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-get-all#parameters

 

Both will give you a list of metrics, that are actively reported after the provided timestamp. 

Radu
Dynatrace Pro
Dynatrace Pro

Hi Lou,

 

This is not possible. The Metrics Query API will return a response for any query, even those metrics that (for one reason or another) don't have any results.

 

Best regards,

Radu



Best regards,
Radu

MerrillLong
Newcomer

The Metrics API v2 is the first v2 API available in Dynatrace.  Every metric has a list of available transformations that you can apply to  Information about transformations and aggregations gathered from the /metrics endpoint can then be used,  Example 1: Query disk availability only for hosts in a specific.