Skip to content

Commit 3025687

Browse files
authored
Update control-plane-metrics.md
1 parent a3e23b2 commit 3025687

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

articles/azure-resource-manager/management/control-plane-metrics.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.date: 04/26/2023
99
# Azure Resource Manager metrics in Azure Monitor
1010
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.
1111

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).
1313

1414
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.
1515

@@ -30,7 +30,7 @@ curl --location --request GET 'https://management.azure.com/subscriptions/000000
3030
--header 'Authorization: bearer {{bearerToken}}'
3131
```
3232

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:
3434

3535
| Dimension Name | Description |
3636
| ------------------- | ----------------- |
@@ -62,16 +62,14 @@ Then, after selecting **Apply**, you can visualize your Traffic or Latency contr
6262

6363
### Query traffic and latency control plane metrics via REST API
6464

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:
6866

6967
```bash
7068
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&region=global&aggregation=average,count&timespan=2021-11-01T00:00:00Z/2021-11-03T00:00:00Z" \
7169
--header "Authorization: bearer {{bearerToken}}"
7270
```
7371

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:
7573

7674
```Json
7775
{
@@ -186,7 +184,7 @@ curl --location --request GET 'https://management.azure.com/subscriptions/000000
186184
--header 'Authorization: bearer {{bearerToken}}'
187185
```
188186

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.
190188

191189
## Next steps
192190

0 commit comments

Comments
 (0)