Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Get all metrics using Azure Monitoring REST API

$
0
0

Hi,

We are using the Azure Monitoring REST API (https://docs.microsoft.com/en-us/azure/azure-monitor/platform/rest-api-walkthrough) to retrieve all the metrics for a resource by first querying for all the metric types for a resource (using /metricDefinitions), and then using the /metrics api to get the values of each metric.

In the /metrics call, we create a filter expression and add each metric type that we have found to the filter (using 'name.value eq metricName').

We wanted to check if there is any way to get all the metric values for a resources using a single call instead of going through two calls (i.e. without requiring to list out each metric). This would help us by improving performance, as well as by reducing errors when the caller's system is configured to block GET calls more than a particular URL size.

Please let us know if this is possible.

Thanks

Anand


Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>