Azure Monitor · Arazzo Workflow

Azure Monitor Resource Metrics Explorer

Version 1.0.0

Discover the metric definitions available for a resource and then pull the metric values for them.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Application InsightsCloudLogsMetricsMonitoringObservabilityArazzoWorkflows

Provider

microsoft-azure-monitor

Workflows

explore-resource-metrics
List a resource's metric definitions, then read the metric values for a chosen metric.
Resolves the metric definitions for the target resource and then queries the metric values for a specified metric name over the supplied timespan and interval.
2 steps inputs: aggregation, interval, metricNamespace, metricnames, resourceUri, timespan outputs: definitions, metrics
1
listMetricDefinitions
List the metric definitions exposed by the resource so the caller can confirm the metric name and namespace before reading values.
2
listMetrics
Read the metric values for the requested metric over the supplied timespan and interval.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure Monitor Resource Metrics Explorer
  summary: Discover the metric definitions available for a resource and then pull the metric values for them.
  description: >-
    The foundational Azure Monitor observability pattern. The workflow first
    lists the metric definitions exposed by a resource so the caller knows which
    metric names and namespaces are emittable, and then queries the metric
    values for a selected metric over a timespan and interval. Every step spells
    out its request inline so the flow can be read and executed without opening
    the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: metricDefinitionsApi
  url: ../openapi/microsoft-azure-monitor-metric-definitions-api-openapi.yml
  type: openapi
- name: metricsApi
  url: ../openapi/microsoft-azure-monitor-metrics-api-openapi.yml
  type: openapi
workflows:
- workflowId: explore-resource-metrics
  summary: List a resource's metric definitions, then read the metric values for a chosen metric.
  description: >-
    Resolves the metric definitions for the target resource and then queries the
    metric values for a specified metric name over the supplied timespan and
    interval.
  inputs:
    type: object
    required:
    - resourceUri
    - metricnames
    properties:
      resourceUri:
        type: string
        description: The full ARM resource identifier to query metrics for (e.g. subscriptions/.../resourceGroups/.../providers/...).
      metricNamespace:
        type: string
        description: The metric namespace to scope metric definitions and values to.
      metricnames:
        type: string
        description: The comma-separated metric names to retrieve values for.
      timespan:
        type: string
        description: The timespan of the query in ISO 8601 duration format (start/end).
      interval:
        type: string
        description: The interval (window size) of the query in ISO 8601 duration format.
      aggregation:
        type: string
        description: The comma-separated list of aggregation types to retrieve.
  steps:
  - stepId: listMetricDefinitions
    description: >-
      List the metric definitions exposed by the resource so the caller can
      confirm the metric name and namespace before reading values.
    operationId: MetricDefinitions_List
    parameters:
    - name: resourceUri
      in: path
      value: $inputs.resourceUri
    - name: api-version
      in: query
      value: '2023-10-01'
    - name: metricNamespace
      in: query
      value: $inputs.metricNamespace
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      definitions: $response.body#/value
      firstMetricName: $response.body#/value/0/name/value
  - stepId: listMetrics
    description: >-
      Read the metric values for the requested metric over the supplied timespan
      and interval.
    operationId: Metrics_List
    parameters:
    - name: resourceUri
      in: path
      value: $inputs.resourceUri
    - name: api-version
      in: query
      value: '2023-10-01'
    - name: timespan
      in: query
      value: $inputs.timespan
    - name: interval
      in: query
      value: $inputs.interval
    - name: metricnames
      in: query
      value: $inputs.metricnames
    - name: aggregation
      in: query
      value: $inputs.aggregation
    - name: metricNamespace
      in: query
      value: $inputs.metricNamespace
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      metrics: $response.body#/value
      metricsTimespan: $response.body#/timespan
  outputs:
    definitions: $steps.listMetricDefinitions.outputs.definitions
    metrics: $steps.listMetrics.outputs.metrics

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-azure-monitor-resource-metrics-explorer-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.