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/control-plane-metrics.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.date: 04/26/2023
9
9
# Azure Resource Manager metrics in Azure Monitor
10
10
When you create and manage resources in Azure, your requests are orchestrated through Azure's [control plane](./control-plane-and-data-plane.md), Azure Resource Manager. This article describes how to monitor the volume and latency of control plane requests made to Azure.
11
11
12
-
With these metrics, you can observe traffic and latency for control plane requests throughout your subscriptions. For example, you can now figure out when your requests have been throttled or failed by filtering for specific status codes. We've dug into this below in[examining throttled requests](#examining-throttled-requests) and [examining server errors](#examining-server-errors).
12
+
With these metrics, you can observe traffic and latency for control plane requests throughout your subscriptions. For example, you can now figure out when your requests have been throttled or failed by filtering for specific status codes by[examining throttled requests](#examining-throttled-requests) and [examining server errors](#examining-server-errors).
13
13
14
14
The metrics are available for up to three months (93 days) and only track synchronous requests. For a scenario like a VM creation, the metrics do not represent the performance or reliability of the long running asynchronous operation.
15
15
@@ -30,7 +30,7 @@ curl --location --request GET 'https://management.azure.com/subscriptions/000000
30
30
--header 'Authorization: bearer {{bearerToken}}'
31
31
```
32
32
33
-
This will return the definition for the metrics schema. Notably, this schema includes the dimensions you can filter on with the Monitor API:
33
+
This snippet returns the definition for the metrics schema. Notably, this schema includes the dimensions you can filter on with the Monitor API:
34
34
35
35
| Dimension Name | Description |
36
36
| ------------------- | ----------------- |
@@ -62,16 +62,14 @@ Then, after selecting **Apply**, you can visualize your Traffic or Latency contr
62
62
63
63
### Query traffic and latency control plane metrics via REST API
64
64
65
-
After you are authenticated with Azure, you can make a request to retrieve control plane metrics for your subscription. In the script shared below, please replace "00000000-0000-0000-0000-000000000000" with your subscription ID.
66
-
67
-
The request below will retrieve the average request latency (in seconds) and the total request count for the 2 day timespan, broken down by 1 day intervals:
65
+
After you are authenticated 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 will retrieve the average request latency (in seconds) and the total request count for the two day timespan, broken down by one day intervals:
68
66
69
67
```bash
70
68
curl --location --request GET "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.insights/metrics?api-version=2021-05-01&interval=P1D&metricnames=Latency&metricnamespace=microsoft.resources/subscriptions®ion=global&aggregation=average,count×pan=2021-11-01T00:00:00Z/2021-11-03T00:00:00Z" \
71
69
--header "Authorization: bearer {{bearerToken}}"
72
70
```
73
71
74
-
In the case of Azure Resource Manager metrics, you can retrieve the traffic count by using the Latency metric and including the 'count' aggregation. You'll see the JSON response for the request below:
72
+
In the case of Azure Resource Manager metrics, you can retrieve the traffic count by using the Latency metric and including the 'count' aggregation. You'll see a JSON response for the request:
75
73
76
74
```Json
77
75
{
@@ -186,7 +184,7 @@ curl --location --request GET 'https://management.azure.com/subscriptions/000000
186
184
--header 'Authorization: bearer {{bearerToken}}'
187
185
```
188
186
189
-
You can also accomplish generic server errors filtering within portal by setting the filter property to 'StatusCodeClass' and the value to '5xx', similar to what was done in the throttling example above.
187
+
You can also accomplish generic server errors filtering within portal by setting the filter property to 'StatusCodeClass' and the value to '5xx', similar to what was done in the throttling example.
0 commit comments