capabilities.work

Batch Metrics Query

A 2-step recipe with Azure Monitor. We can help you get access.

Recipe · 2 steps

Batch Metrics Query

with Azure Monitor · Observability Management

Confirm a metric definition, then batch-query that metric across multiple resources.

  1. List the metric definitions for the representative resource to confirm the metric name and namespace before batching.
  2. Retrieve the chosen metric values across the supplied resource IDs in a single batch request.
What you'll need to have ready
  • subscriptionId: The ID of the target subscription.
  • representativeResourceUri: A representative resource used to resolve metric definitions before the batch query.
  • metricNamespace: The metric namespace shared by all resources in the batch.
  • metricnames: The comma-separated metric names to retrieve.
  • starttime: The start time of the batch query in ISO 8601 format.
  • endtime: The end time of the batch query in ISO 8601 format.
  • interval: The interval (window size) of the query in ISO 8601 duration format.
  • aggregation: The comma-separated list of aggregation types to retrieve.
  • resourceids: The list of resource IDs to query metrics for; all must share subscription, region, and type.
For your developer

Arazzo workflow microsoft-azure-monitor:batch-query-metrics, 2 operations: MetricDefinitions_List → MetricsBatch_Batch. Specs on APIs.io.