Sample PromQL queries
Open the expression browser
-
Port-forward the Prometheus pod in your cluster.
-
Access the Prometheus expression browser.
Ingress gateway queries
Metric | PromQL query |
---|---|
Request rate for the ingress gateway | rate(istio_requests_total{source_workload="istio-ingressgateway-1-20"}[5m]) |
Request rate between the ingress gateway and a destination workload | rate(istio_requests_total{source_workload="istio-ingressgateway-1-20", destination_workload="<workload_ID>"}[5m]) |
Successful request rate to a destination workload | rate(istio_requests_total{response_code=~"[2-3].*", destination_workload="<workload_ID>"}[5m]) |
Rate of failing requests to a destination workload | rate(istio_requests_total{response_code=~"[4-5].*", destination_workload="<workload_ID>"}[5m]) |
Number of new requests within a certain timeframe | sum(increase(istio_requests_total{}[5m])) by (workload_id, destination_workload_id) |