Skip to content

Instantly share code, notes, and snippets.

@seahrh
Created April 7, 2020 01:28
Show Gist options
  • Save seahrh/d599803f0a086641c5cd24e0f7b2fa1f to your computer and use it in GitHub Desktop.
Save seahrh/d599803f0a086641c5cd24e0f7b2fa1f to your computer and use it in GitHub Desktop.
Istio prometheus queries for RED metrics on grafana
histogram_quantile(0.50, sum(rate(istio_request_duration_seconds_bucket{reporter="source",destination_service=~"$service"}[1m])) by (le))
round(sum(rate(istio_requests_total{reporter="source",destination_service=~"$service"}[1m])), 0.1)
-- success rate should be replaced with error rate
sum(rate(istio_requests_total{reporter="source",destination_service=~"$service",response_code!~"5.*"}[1m])) / sum(rate(istio_requests_total{reporter="source",destination_service=~"$service"}[1m]))
-- alerts P99
histogram_quantile(0.99, sum(rate(istio_request_duration_seconds_bucket{reporter="source",destination_service="my_service"}[60m])) by (le))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment