From f54768772e84cbfbc7b1754351dc0bfae9d20033 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Tue, 26 Mar 2019 21:30:18 +0200 Subject: [PATCH] Fix App Mesh success rate graph --- charts/grafana/dashboards/appmesh.json | 4 ++-- charts/grafana/templates/NOTES.txt | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/charts/grafana/dashboards/appmesh.json b/charts/grafana/dashboards/appmesh.json index c66a22177..1544ee5bc 100644 --- a/charts/grafana/dashboards/appmesh.json +++ b/charts/grafana/dashboards/appmesh.json @@ -179,7 +179,7 @@ "tableColumn": "", "targets": [ { - "expr": "sum(irate(envoy_cluster_upstream_rq{kubernetes_namespace=~\"$namespace\",app=~\"$primary\",response_code!~\"5.*\"}[30s])) / sum(irate(envoy_cluster_upstream_rq{kubernetes_namespace=~\"$namespace\",app=~\"$primary\"}[30s]))", + "expr": "sum(irate(envoy_cluster_upstream_rq{kubernetes_namespace=~\"$namespace\",app=~\"$primary\",envoy_response_code!~\"5.*\"}[30s])) / sum(irate(envoy_cluster_upstream_rq{kubernetes_namespace=~\"$namespace\",app=~\"$primary\"}[30s]))", "format": "time_series", "intervalFactor": 1, "legendFormat": "", @@ -345,7 +345,7 @@ "tableColumn": "", "targets": [ { - "expr": "sum(irate(envoy_cluster_upstream_rq{kubernetes_namespace=~\"$namespace\",app=~\"$canary\",response_code!~\"5.*\"}[30s])) / sum(irate(envoy_cluster_upstream_rq{kubernetes_namespace=~\"$namespace\",app=~\"$canary\"}[30s]))", + "expr": "sum(irate(envoy_cluster_upstream_rq{kubernetes_namespace=~\"$namespace\",app=~\"$canary\",envoy_response_code!~\"5.*\"}[30s])) / sum(irate(envoy_cluster_upstream_rq{kubernetes_namespace=~\"$namespace\",app=~\"$canary\"}[30s]))", "format": "time_series", "intervalFactor": 1, "legendFormat": "", diff --git a/charts/grafana/templates/NOTES.txt b/charts/grafana/templates/NOTES.txt index dd7aa861b..f3f868aa3 100644 --- a/charts/grafana/templates/NOTES.txt +++ b/charts/grafana/templates/NOTES.txt @@ -1,3 +1,7 @@ -1. Get the application URL with: +1. Run the port forward command: kubectl -n {{ .Release.Namespace }} port-forward svc/{{ .Release.Name }} 3000:80 + +2. Navigate to: + +http://localhost:3000 \ No newline at end of file