From 087264e068de708871a828e9094ad1bb49195c9e Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 22 Apr 2024 11:44:51 +0100 Subject: [PATCH] Update doc/observability/metrics.md Co-authored-by: Jason Madigan <4467+jasonmadigan@users.noreply.github.com> --- doc/observability/metrics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/observability/metrics.md b/doc/observability/metrics.md index dd6c417cb..e89ba2794 100644 --- a/doc/observability/metrics.md +++ b/doc/observability/metrics.md @@ -119,7 +119,7 @@ traffic belongs to. The 2nd part of the query uses the `gatewayapi_httproute_labels` metric and the `label_replace` function. The `gatewayapi_httproute_labels` metric gives a list of all httproutes, including any labels on them. The HTTPRoute in this example -has a label called 'service', set to be the same as the istio service name. +has a label called 'service', set to be the same as the Istio service name. This allows us to join the 2 results set. However, because the label doesn't match exactly (`destination_service_name` and `service`), we can replace the label so that it does match. That's what the `label_replace`