The new Azure Metrics Data plane API is a great new addition to Azure Monitor!
I tried the new SDK for Go, and it allows me to collect metrics values from 1000+ resources in 20 seconds, which is excellent.
We have solved the bottleneck in metric values, but now I am facing a bottleneck in metrics definitions.
Here is what I'm currently doing:
- List the existing resources
- For each resource, list the existing metric definitions
- Group all metric definitions by metric names and aggregation type, and batch query the values.
For example, to collect the metrics values for the 1000+ resources mentioned, I need to get the list of metrics definitions for each resource, right? So, I have to make 1000+ calls to get metrics definitions and then start getting the actual metrics values.
Am I missing something? Is there a more efficient way to get metric definitions for batch query Azure Monitor?