Activity Log To Metrics
A 3-step recipe with Azure Monitor. We can help you get access.
Recipe · 3 steps
Activity Log To Metrics
with Azure Monitor · Observability Management
List Activity Log events, then a resource's metric definitions and metric values.
- List the recent Activity Log management events for the subscription using the supplied time-range filter.
- List the metric definitions exposed by the resource under investigation.
- Read the metric values for the chosen metric over the supplied timespan and interval.
What you'll need to have ready
- subscriptionId: The ID of the target subscription.
- eventFilter: The required OData $filter including an eventTimestamp time range for the Activity Log query.
- resourceUri: The full ARM resource identifier to inspect metrics for.
- metricNamespace: The metric namespace to scope metric definitions and values to.
- metricnames: The comma-separated metric names to retrieve values for.
- timespan: The timespan of the metrics query in ISO 8601 duration format.
- interval: The interval of the metrics query in ISO 8601 duration format.
For your developer
Arazzo workflow microsoft-azure-monitor:triage-activity-and-metrics, 3 operations: ActivityLogs_List → MetricDefinitions_List → Metrics_List. Specs on APIs.io.