Adding label to an existing Istio metric #51137
Replies: 4 comments 7 replies
-
https://istio.io/latest/docs/tasks/observability/metrics/telemetry-api/ |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer @zirain. I already tried the following telemetry configuration
but, I still cannot see the desired label x-user-email for the istio_request_bytes_sum metric. My Prometheus scrape configuration looks like the following:
|
Beta Was this translation helpful? Give feedback.
-
I don't have Istio sidecars injected into pods. I only have Istio ingress gateway to point to my API pod and Istio virtualService to route the traffic. Should I have enabled the injection? I installed Istio using Helm. There's an istiod pod in the istio-system namespace, and istio-ingress controller in the istio-ingress namespace. Envoy filter and telemetry resources are residing in the istio-system namespace. |
Beta Was this translation helpful? Give feedback.
-
I've managed to make it work by adding the label to all metrics with the following telemetry resource:
Now, the x_user_email is shown in istio_request_bytes_sum and all other metrics! |
Beta Was this translation helpful? Give feedback.
-
I have the 'x-user-email' header and I want to add it to the existing istio_request_bytes_sum metric as a label (dimension) to be discovered by Prometheus.
Istio version is 1.21.1.
How should I make it?
Beta Was this translation helpful? Give feedback.
All reactions