From 486d1a9713a5f6393dff1668711ff1ccf83b0ad3 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Sun, 23 Sep 2018 11:55:27 +0300 Subject: [PATCH] Add success rate query --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 959957d4..0fe12d28 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,33 @@ Create GA and canary deployments, services and Istio virtual service: kubectl apply -f ./artifacts/workloads/ ``` -Start rollout: +Rollout: ![rollout-cli](docs/screens/rollout-cli-output.png) +HTTP success rate query: + +```sql +sum( + irate( + istio_requests_total{ + reporter="destination", + destination_workload_namespace=~"$namespace", + destination_workload=~"$workload", + response_code!~"5.*" + }[$interval] + ) +) +/ +sum( + irate( + istio_requests_total{ + reporter="destination", + destination_workload_namespace=~"$namespace", + destination_workload=~"$workload" + }[$interval] + ) +) +``` +