kubernetesistioservicemeshobservabilityistio-prometheus

How to monitor Istio stats based on URI using prometheus?


We are using Istio 1.15.4 on EKS 1.23.6. Our application URL has customer id in it, for eg. https://neeleshgurjar.co.in/api/v1/customer_11

https://neeleshgurjar.co.in/api/v1/customer_12

All requests are landing on Istio Ingress Gateway i.e. AWS managed ALB.

Now how can I monitor the number of request for customer_11 and same for customer_12?

I want to monitor them using Prometheus - grafana stack.


Solution

  • https://istio.io/latest/docs/tasks/observability/metrics/customize-metrics/

    you can refer to this

    apiVersion: install.istio.io/v1alpha1
    kind: IstioOperator
    spec:
      values:
        telemetry:
          v2:
            prometheus:
              configOverride:
                inboundSidecar:
                  metrics:
                    - name: requests_path
                      dimensions:
                        request_host: request.path
                gateway:
                  metrics:
                    - name: requests_path
                      dimensions:
                        request_host: request.path