Skip to content

Commit 85964c2

Browse files
authored
docs: metrics enrichment with custom headers (#1397)
Signed-off-by: Martin Ehrnst <[email protected]>
1 parent 7b141fd commit 85964c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

site/docs/capabilities/observability/metrics.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ Each metric comes with some default attributes such as:
4141
- `gen_ai.response.model` - The model name returned in the response
4242
- `gen_ai.provider.name` - The provider name (e.g., `openai`, `anthropic`)
4343

44+
:::tip
45+
46+
You can enrich the metrics with custom labels extracted from HTTP request headers. It can be configured via the `controller.metricsRequestHeaderAttributes` helm installation value. Please refer to [values.yaml](https://github.com/envoyproxy/ai-gateway/blob/main/manifests/charts/ai-gateway-helm/values.yaml) for more details including other configurations.
47+
48+
:::
49+
4450
## Trying it out
4551

4652
Before you begin, you'll need to complete the basic setup from the [Basic Usage](/docs/getting-started/basic-usage) guide.

0 commit comments

Comments
 (0)