Skip to content

Commit 078a639

Browse files
Merge pull request #303177 from nimakamoosi/nimak/fix/dimension-count-limit
Updating allowed additional metric dimensions to 5 in docs.
2 parents 4c8ef35 + f09d3e3 commit 078a639

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

articles/api-management/azure-openai-emit-token-metric-policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The `azure-openai-emit-token-metric` policy sends custom metrics to Application
5959
| ----------- | --------------------------------------------------------------------------------- | -------- |
6060
| dimension | Add one or more of these elements for each dimension included in the metric. | Yes |
6161

62-
### dimension attributes
62+
### Dimension attributes
6363

6464
| Attribute | Description | Required | Default value |
6565
| --------- | -------------------------- | ------------------ | -------------- |
@@ -77,7 +77,7 @@ The `azure-openai-emit-token-metric` policy sends custom metrics to Application
7777
### Usage notes
7878

7979
* This policy can be used multiple times per policy definition.
80-
* You can configure at most 10 custom dimensions for this policy.
80+
* You can configure at most 5 custom dimensions for this policy.
8181
* This policy can optionally be configured when adding an API from the Azure OpenAI Service using the portal.
8282
* Where available, values in the usage section of the response from the Azure OpenAI Service API are used to determine token metrics.
8383
* Certain Azure OpenAI endpoints support streaming of responses. When `stream` is set to `true` in the API request to enable streaming, token metrics are estimated.

articles/api-management/emit-metric-policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The `emit-metric` policy sends custom metrics in the specified format to Applica
5252
| ----------- | --------------------------------------------------------------------------------- | -------- |
5353
| dimension | Add one or more of these elements for each dimension included in the custom metric. | Yes |
5454

55-
### dimension attributes
55+
### Dimension attributes
5656

5757
| Attribute | Description | Required | Default value |
5858
| --------- | -------------------------- | ------------------ | -------------- |
@@ -69,7 +69,7 @@ The `emit-metric` policy sends custom metrics in the specified format to Applica
6969

7070
### Usage notes
7171

72-
* You can configure at most 10 custom dimensions for this policy.
72+
* You can configure at most 5 custom dimensions for this policy.
7373

7474
## Example
7575

articles/api-management/llm-emit-token-metric-policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The `llm-emit-token-metric` policy sends custom metrics to Application Insights
5858
| ----------- | --------------------------------------------------------------------------------- | -------- |
5959
| dimension | Add one or more of these elements for each dimension included in the metric. | Yes |
6060

61-
### dimension attributes
61+
### Dimension attributes
6262

6363
| Attribute | Description | Required | Default value |
6464
| --------- | -------------------------- | ------------------ | -------------- |
@@ -77,7 +77,7 @@ The `llm-emit-token-metric` policy sends custom metrics to Application Insights
7777
### Usage notes
7878

7979
* This policy can be used multiple times per policy definition.
80-
* You can configure at most 10 custom dimensions for this policy.
80+
* You can configure at most 5 custom dimensions for this policy.
8181
* Where available, values in the usage section of the response from the LLM API are used to determine token metrics.
8282
* Certain LLM endpoints support streaming of responses. When `stream` is set to `true` in the API request to enable streaming, token metrics are estimated.
8383

includes/api-management-custom-metrics-limits.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ ms.date: 09/25/2024
77
ms.custom:
88
---
99

10-
Azure Monitor imposes [usage limits](/azure/azure-monitor/essentials/metrics-custom-overview#quotas-and-limits) for custom metrics that may affect your ability to emit metrics from API Management. For example, Azure Monitor currently sets a limit of 10 dimension keys per metric, and a limit of 50,000 total active time series per region in a subscription (within a 12 hour period).
10+
Azure Monitor imposes [usage limits](/azure/azure-monitor/essentials/metrics-custom-overview#quotas-and-limits) for custom metrics that may affect your ability to emit metrics from API Management. For example, Azure Monitor currently sets a limit of 10 dimension keys per metric, and a limit of 50,000 total active time series per region in a subscription (within a 12 hour period). In API Management, 5 of these are used for default dimensions including the following:
11+
12+
- Region
13+
- Service ID
14+
- Service Name
15+
- Service Type
1116

1217
These limits have the following implications for configuring custom metrics in an API Management policy such as `emit-metric` or `azure-openai-emit-token-metric`:
1318

14-
* You can configure a maximum of 10 custom dimensions per policy.
19+
* You can configure a maximum of 5 custom dimensions per policy.
1520

1621
* The number of active time series generated by the policy within a 12 hour period is the product of the number of unique values of each configured dimension during the period. For example, if three custom dimensions were configured in the policy, and each dimension had 10 possible values within the period, the policy would contribute 1,000 (10 x 10 x 10) active time series.
1722

1823
* If you configure the policy in multiple API Management instances that are in the same region in a subscription, all instances can contribute to the regional active time series limit.
1924

20-
Learn more about [design limitations and considerations ](/azure/azure-monitor/essentials/metrics-custom-overview#design-limitations-and-considerations) for custom metrics in Azure Monitor.
25+
Learn more about [design limitations and considerations ](/azure/azure-monitor/essentials/metrics-custom-overview#design-limitations-and-considerations) for custom metrics in Azure Monitor.

0 commit comments

Comments
 (0)