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 <mandrei17@gmail.com>
This commit is contained in:
Daniel-Andrei Minca
2021-06-30 16:10:53 +02:00
parent e4af8ddcc8
commit c98cd10621

View File

@ -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"
}
],