Skip to content

Commit bae07d2

Browse files
authored
Merge pull request #298501 from dlepow/fixmet
[APIM] Backend ID support in emit-token-metric policies
2 parents 880a77a + 5412aa9 commit bae07d2

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: dlepow
66

77
ms.service: azure-api-management
88
ms.topic: reference
9-
ms.date: 04/01/2025
9+
ms.date: 04/18/2025
1010
ms.author: danlep
1111
ms.collection: ce-skilling-ai-copilot
1212
ms.custom:
@@ -65,11 +65,11 @@ The `azure-openai-emit-token-metric` policy sends custom metrics to Application
6565
| name | A string or policy expression. Name of dimension. | Yes | N/A |
6666
| value | A string or policy expression. Value of dimension. Can only be omitted if `name` matches one of the default dimensions. If so, value is provided as per dimension name. | No | N/A |
6767

68-
[!INCLUDE [api-management-emit-metric-dimensions](../../includes/api-management-emit-metric-dimensions.md)]
68+
[!INCLUDE [api-management-emit-metric-dimensions-llm](../../includes/api-management-emit-metric-dimensions-llm.md)]
6969

7070
## Usage
7171

72-
- [**Policy sections:**](./api-management-howto-policies.md#sections) inbound, outbound
72+
- [**Policy sections:**](./api-management-howto-policies.md#sections) inbound
7373
- [**Policy scopes:**](./api-management-howto-policies.md#scopes) global, workspace, product, API, operation
7474
- [**Gateways:**](api-management-gateways-overview.md) classic, v2, consumption, self-hosted, workspace
7575

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: dlepow
66

77
ms.service: azure-api-management
88
ms.topic: reference
9-
ms.date: 04/01/2025
9+
ms.date: 04/18/2025
1010
ms.author: danlep
1111
ms.collection: ce-skilling-ai-copilot
1212
ms.custom:
@@ -67,12 +67,12 @@ The `llm-emit-token-metric` policy sends custom metrics to Application Insights
6767
| name | A string or policy expression. Name of dimension. | Yes | N/A |
6868
| value | A string or policy expression. Value of dimension. Can only be omitted if `name` matches one of the default dimensions. If so, value is provided as per dimension name. | No | N/A |
6969

70-
[!INCLUDE [api-management-emit-metric-dimensions](../../includes/api-management-emit-metric-dimensions.md)]
70+
[!INCLUDE [api-management-emit-metric-dimensions-llm](../../includes/api-management-emit-metric-dimensions-llm.md)]
7171

7272

7373
## Usage
7474

75-
- [**Policy sections:**](./api-management-howto-policies.md#sections) inbound, outbound
75+
- [**Policy sections:**](./api-management-howto-policies.md#sections) inbound
7676
- [**Policy scopes:**](./api-management-howto-policies.md#scopes) global, workspace, product, API, operation
7777
- [**Gateways:**](api-management-gateways-overview.md) classic, v2, consumption, self-hosted, workspace
7878

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
author: dlepow
3+
ms.service: azure-api-management
4+
ms.custom:
5+
- build-2024
6+
ms.topic: include
7+
ms.date: 04/18/2025
8+
ms.author: danlep
9+
---
10+
11+
### Default dimension names that may be used without value
12+
13+
* API ID
14+
* Operation ID
15+
* Product ID
16+
* User ID
17+
* Subscription ID
18+
* Location
19+
* Gateway ID
20+
* Backend ID

includes/api-management-emit-metric-dimensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ ms.author: danlep
1717
* Subscription ID
1818
* Location
1919
* Gateway ID
20-
* Backend ID (use only in outbound policy)
20+
* Backend ID (use only in outbound policy section)

0 commit comments

Comments
 (0)