You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/management/monitor-resource-manager.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Monitor Azure Resource Manager
3
3
description: Start here to learn how to monitor Azure Resource Manager. Learn about Traffic and latency observability for subscription-level control plane requests.
4
-
ms.date: 07/16/2024
4
+
ms.date: 07/25/2024
5
5
ms.custom: horz-monitor, devx-track-arm-template
6
6
ms.topic: conceptual
7
7
author: mumian
@@ -33,15 +33,15 @@ With these metrics, you can observe traffic and latency for control plane reques
33
33
34
34
The metrics are available for up to three months (93 days) and only track synchronous requests. For a scenario like a virtual machine creation, the metrics don't represent the performance or reliability of the long running asynchronous operation.
35
35
36
-
## Accessing Azure Resource Manager metrics
36
+
###Accessing Azure Resource Manager metrics
37
37
38
38
You can access control plane metrics by using the Azure Monitor REST APIs, SDKs, and the Azure portal by selecting the **Azure Resource Manager** metric. For an overview on Azure Monitor, see [Azure Monitor Metrics](../../azure-monitor/data-platform.md).
39
39
40
40
There's no opt-in or sign-up process to access control plane metrics.
41
41
42
42
For guidance on how to retrieve a bearer token and make requests to Azure, see [Azure REST API reference](/rest/api/azure/#create-the-request).
43
43
44
-
## Metric definition
44
+
###Metric definition
45
45
46
46
The definition for Azure Resource Manager metrics in Azure Monitor is only accessible through the 2017-12-01-preview API version. To retrieve the definition, you can run the following snippet. Replace `00000000-0000-0000-0000-000000000000` with your subscription ID.
47
47
@@ -52,11 +52,11 @@ curl --location --request GET 'https://management.azure.com/subscriptions/000000
52
52
53
53
This snippet returns the definition for the metrics schema. Notably, this schema includes [the dimensions you can filter on with the Monitor API](monitor-resource-manager-reference.md#metric-dimensions).
54
54
55
-
##Examples
55
+
### Metrics examples
56
56
57
57
Here are some scenarios that can help you explore Azure Resource Manager metrics.
58
58
59
-
### Query traffic and latency control plane metrics with Azure portal
59
+
####Query traffic and latency control plane metrics with Azure portal
60
60
61
61
First, navigate to the Azure Monitor page within the [portal](https://portal.azure.com):
62
62
@@ -70,7 +70,7 @@ Then, after selecting **Apply**, you can visualize your Traffic or Latency contr
70
70
71
71
:::image type="content" source="./media/view-arm-monitor-metrics/arm-metrics-view.png" alt-text="Screenshot of the metrics visualization in the Azure portal, showing options to filter and split by dimensions.":::
72
72
73
-
### Query traffic and latency control plane metrics with REST API
73
+
####Query traffic and latency control plane metrics with REST API
74
74
75
75
After you authenticate with Azure, you can make a request to retrieve control plane metrics for your subscription. In the script, replace `00000000-0000-0000-0000-000000000000` with your subscription ID. The script retrieves the average request latency, in seconds, and the total request count for the two day timespan, broken down by one day intervals:
76
76
@@ -172,7 +172,7 @@ For the metrics supporting dimensions, you need to specify the dimension value t
172
172
173
173
If you want to look at the number of requests made in your subscription for Networking resources, like Virtual Networks and Load Balancers, you would need to filter the **Namespace** dimension for **MICROSOFT.NETWORK**.
174
174
175
-
### Examining Throttled Requests
175
+
####Examining Throttled Requests
176
176
177
177
To view only your throttled requests, you need to filter for 429 status code responses only. For REST API calls, filtering is accomplished by using the [$filter property](/rest/api/monitor/Metrics/List#uri-parameters) and the StatusCode dimension by appending: `$filter=StatusCode eq '429'` as seen at the end of the request in the following snippet:
178
178
@@ -184,7 +184,7 @@ curl --location --request GET 'https://management.azure.com/subscriptions/000000
184
184
You can also filter directly in portal:
185
185
:::image type="content" source="./media/view-arm-monitor-metrics/throttling-filter-portal.png" alt-text="Screenshot of filtering HTTP Status Code to 429 responses only in the Azure portal.":::
186
186
187
-
### Examining Server Errors
187
+
####Examining Server Errors
188
188
189
189
Similar to looking at throttled requests, you view *all* requests that returned a server error response code by filtering 5xx responses only. For REST API calls, filtering is accomplished by using the [$filter property](/rest/api/monitor/Metrics/List#uri-parameters) and the StatusCodeClass dimension by appending: $filter=StatusCodeClass eq '5xx' as seen at the end of the request in the following snippet:
0 commit comments