For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Sample PromQL queries
Review sample PromQL queries that you can run in the Prometheus expression browser.
Open the expression browser
Port-forward the Prometheus pod in your cluster.
meshctl proxy prometheus --kubecontext $MGMT_CONTEXTPort-forward the
prometheus-serverdeployment on 9091.kubectl -n gloo-mesh port-forward deploy/prometheus-server 9091 --context $MGMT_CONTEXTAccess the Prometheus expression browser.
Service mesh workloads queries
| Metric | PromQL query |
|---|---|
| Request rate for a given service | rate(istio_requests_total{destination_app="<service_ID>"}[5m]) |
| Request rate between source and destination workload | rate(istio_requests_total{source_workload="<source_workload>", 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) |
| Number of total requests for a source workload | sum(istio_requests_total{source_workload="<souce_workload>"}) by (workload_id,destination_workload_id, response_code) |
Ingress gateway queries
| Metric | PromQL query |
|---|---|
| Request rate for the ingress gateway | rate(istio_requests_total{source_workload="istio-ingressgateway-main"}[5m]) |
| Request rate between the ingress gateway and a destination workload | rate(istio_requests_total{source_workload="istio-ingressgateway-main", 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) |