09 Apr 2021 09:58 PM - last edited on 20 Apr 2021 07:43 AM by Karolina_Linda
Is it Possible to Get a List of Only Collected Metrics Available?
Thanks,
Lou
Solved! Go to Solution.
10 Apr 2021 02:24 PM
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.
12 Apr 2021 08:26 AM
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?
19 Apr 2021 09:58 AM
Hi,
have you considered using the metric browser with the filter option for "metric last reported":
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.
12 Apr 2021 08:23 AM
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