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
+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
@@ -34,7 +34,7 @@ This will return the definition for the metrics schema. Notably, this schema inc
34
34
| Dimension Name | Description |
35
35
| ------------------- | ----------------- |
36
36
|**ResourceUri**| The full Resource ID for a particular resource. |
37
-
|**RequestRegion**| The Azure Resource Manager region where your control plane requests land, like "EastUS2". This is not the same as your resource's location. |
37
+
|**RequestRegion**| The Azure Resource Manager region where your control plane requests land, like "EastUS2". This region is not the resource's location. |
38
38
|**StatusCode**| Response type from Azure Resource Manager for your control plane request. Possible values are (but not limited to): <br/>- 0<br/>- 200<br/>- 201<br/>- 400<br/>- 404<br/>- 429<br/>- 500<br/>- 502|
39
39
|**StatusCodeClass**| The class for the status code returned from Azure Resource Manager. Possible values are: <br/>- 2xx<br/>- 4xx<br/>- 5xx|
40
40
|**Namespace**| The namespace for the Resource Provider, in all caps, like "MICROSOFT.COMPUTE"|
@@ -70,7 +70,7 @@ curl --location --request GET "https://management.azure.com/subscriptions/000000
70
70
--header "Authorization: bearer {{bearerToken}}"
71
71
```
72
72
73
-
In the case of Azure Resource Manager metrics, you can actually retrieve the traffic count by simply using the Latency metric and including the 'count' aggregation. You'll see the JSON response for the request below:
73
+
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:
74
74
75
75
```Json
76
76
{
@@ -112,14 +112,14 @@ In the case of Azure Resource Manager metrics, you can actually retrieve the tra
112
112
}
113
113
```
114
114
115
-
As seen above, you actually get the traffic count included in the Latency metric by including 'count' as part of the aggregation. If you want to retrieve only the traffic count, then you can utilize the Traffic metric with the 'count' aggregation:
115
+
If you want to retrieve only the traffic count, then you can utilize the Traffic metric with the 'count' aggregation:
116
116
117
117
```bash
118
118
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=Traffic&metricnamespace=microsoft.resources/subscriptions®ion=global&aggregation=count×pan=2021-11-01T00:00:00Z/2021-11-03T00:00:00Z' \
119
119
--header 'Authorization: bearer {{bearerToken}}'
120
120
```
121
121
122
-
The response for this will look similar but notice the **only** difference is in the *unit* property:
122
+
The response for the request is:
123
123
124
124
```Json
125
125
{
@@ -165,27 +165,27 @@ If you want to look at the number of requests made in your subscription for Netw
165
165
166
166
### Examining Throttled Requests
167
167
168
-
To view only your throttled requests, you need to filter for 429 status code responses only. For REST API calls, this is accomplished via 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:
168
+
To view only your throttled requests, you need to filter for 429 status code responses only. For REST API calls, filtering is accomplished via 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:
169
169
170
170
```bash
171
171
curl --location --request GET 'https://management.azure.com/subscriptions/dff2e75b-8fe7-4dc7-8360-9247be413c9b/providers/microsoft.insights/metrics?api-version=2021-05-01&interval=P1D&metricnames=Latency&metricnamespace=microsoft.resources/subscriptions®ion=global&aggregation=count,average×pan=2021-11-01T00:00:00Z/2021-11-03T00:00:00Z&$filter=StatusCode%20eq%20%27429%27' \
172
172
--header 'Authorization: bearer {{bearerToken}}'
173
173
```
174
174
175
-
You can also do this directly in portal:
175
+
You can also filter directly in portal:
176
176
:::image type="content" source="./media/view-arm-monitor-metrics/throttling-filter-portal.png" alt-text="Filter HTTP Status Code to 429 responses only":::
177
177
178
178
179
179
### Examining Server Errors
180
180
181
-
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, this is accomplished via 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:
181
+
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 via 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:
182
182
183
183
```bash
184
184
curl --location --request GET 'https://management.azure.com/subscriptions/dff2e75b-8fe7-4dc7-8360-9247be413c9b/providers/microsoft.insights/metrics?api-version=2021-05-01&interval=P1D&metricnames=Latency&metricnamespace=microsoft.resources/subscriptions®ion=global&aggregation=count,average×pan=2021-11-01T00:00:00Z/2021-11-03T00:00:00Z&$filter=StatusCodeClass%20eq%20%275xx%27' \
185
185
--header 'Authorization: bearer {{bearerToken}}'
186
186
```
187
187
188
-
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 in the throttling example above.
188
+
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.
0 commit comments