From c98cd106218b0fdead155bd9a0b0a5666e5c3e15 Mon Sep 17 00:00:00 2001 From: Daniel-Andrei Minca Date: Wed, 30 Jun 2021 16:10:53 +0200 Subject: [PATCH] fix Control Plane dashboard legend The legend was not showing the Pod name, instead the whole resource in the dashboard As a result, use the correct Prometheus label Resolves: Related: Signed-off-by: Daniel-Andrei Minca --- manifests/monitoring/grafana/dashboards/control-plane.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/monitoring/grafana/dashboards/control-plane.json b/manifests/monitoring/grafana/dashboards/control-plane.json index 38ae3a0a..2aedd589 100644 --- a/manifests/monitoring/grafana/dashboards/control-plane.json +++ b/manifests/monitoring/grafana/dashboards/control-plane.json @@ -547,7 +547,7 @@ { "expr": "rate(process_cpu_seconds_total{namespace=\"$namespace\",pod=~\".*-controller-.*\"}[1m])", "interval": "", - "legendFormat": "{{kubernetes_pod_name}}", + "legendFormat": "{{pod}}", "refId": "A" } ], @@ -643,7 +643,7 @@ "expr": "rate(go_memstats_alloc_bytes_total{namespace=\"$namespace\",pod=~\".*-controller-.*\"}[1m])", "hide": false, "interval": "", - "legendFormat": "{{kubernetes_pod_name}}", + "legendFormat": "{{pod}}", "refId": "A" } ],