I need to get via REST API the metric "Container group instances --> CPU usage % of limit" that I'm able to successfully get from dashboard:
I built this REST API call:
but it returns empty "data"::
What's wrong with the API REST call?
Solved! Go to Solution.
Is your container really named 'mycontainer'?
Have you tried playing with the API Explorer and see what it takes to return valid data. This is a very helpful tool in this type of exploration. The API Explorer can be found under Settings -> Integration -> Dynatrace API then click on Dynatrace API Explorer at the top of the page.
One approach could be to remove the filter you've applied to see if you even get any data back. If you do, then at least you know it's your filter that's causing no data. Or try a different metric with the same data. Try a larger timeframe. Try removing resolution. Explore a simpler command to determine what's limiting your data returned.