Skip to content

Commit bb0809a

Browse files
author
gitName
committed
simplify examples to reduce time series
1 parent 678954c commit bb0809a

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ The `azure-openai-emit-token-metric` policy sends custom metrics to Application
5050
| Attribute | Description | Required | Default value |
5151
| --------- | -------------------------- | ------------------ | -------------- |
5252
| namespace | A string. Namespace of metric. Policy expressions aren't allowed. | No | API Management |
53-
| value | Value of metric expressed as a double. Policy expressions are allowed. | No | 1 |
5453

5554

5655
## Elements
@@ -92,15 +91,13 @@ The `azure-openai-emit-token-metric` policy sends custom metrics to Application
9291

9392
## Example
9493

95-
The following example sends Azure OpenAI token count metrics to Application Insights along with User ID, Client IP, and API ID as dimensions.
94+
The following example sends Azure OpenAI token count metrics to Application Insights along with API ID as a custom dimension.
9695

9796
```xml
9897
<policies>
9998
<inbound>
10099
<azure-openai-emit-token-metric
101100
namespace="AzureOpenAI">
102-
<dimension name="User ID" />
103-
<dimension name="Client IP" value="@(context.Request.IpAddress)" />
104101
<dimension name="API ID" />
105102
</azure-openai-emit-token-metric>
106103
</inbound>

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,12 @@ The `emit-metric` policy sends custom metrics in the specified format to Applica
8181

8282
## Example
8383

84-
The following example sends a custom metric to count the number of API requests along with user ID, client IP, and API ID as custom dimensions.
84+
The following example sends a custom metric to count the number of API requests along with API ID as a custom dimension.
8585

8686
```xml
8787
<policies>
8888
<inbound>
8989
<emit-metric name="Request" value="1" namespace="my-metrics">
90-
<dimension name="User ID" />
91-
<dimension name="Client IP" value="@(context.Request.IpAddress)" />
9290
<dimension name="API ID" />
9391
</emit-metric>
9492
</inbound>

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ The `llm-emit-token-metric` policy sends custom metrics to Application Insights
5252
| Attribute | Description | Required | Default value |
5353
| --------- | -------------------------- | ------------------ | -------------- |
5454
| namespace | A string. Namespace of metric. Policy expressions aren't allowed. | No | API Management |
55-
| value | Value of metric expressed as a double. Policy expressions are allowed. | No | 1 |
5655

5756

5857
## Elements
@@ -93,15 +92,13 @@ The `llm-emit-token-metric` policy sends custom metrics to Application Insights
9392

9493
## Example
9594

96-
The following example sends LLM token count metrics to Application Insights along with User ID, Client IP, and API ID as dimensions.
95+
The following example sends LLM token count metrics to Application Insights along with API ID as a custom dimension.
9796

9897
```xml
9998
<policies>
10099
<inbound>
101100
<llm-emit-token-metric
102101
namespace="MyLLM">
103-
<dimension name="User ID" />
104-
<dimension name="Client IP" value="@(context.Request.IpAddress)" />
105102
<dimension name="API ID" />
106103
</llm-emit-token-metric>
107104
</inbound>

0 commit comments

Comments
 (0)