From 0c08849def23068d12ee5b41a83c3f0664f5764f Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Thu, 15 Jun 2023 01:43:04 +0530 Subject: [PATCH] Fix CPU & memory component graphs Without this, all cpu and memory components are collapsed into a single value. --- dashboards/jupyterhub.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboards/jupyterhub.libsonnet b/dashboards/jupyterhub.libsonnet index 6e04d9a..c20d6ce 100755 --- a/dashboards/jupyterhub.libsonnet +++ b/dashboards/jupyterhub.libsonnet @@ -21,7 +21,7 @@ local prometheus = grafana.prometheus; componentLabel(component, cmp='=', namespace='$hub'):: std.format( // group aggregator is used to ensure named pods are unique per namespace - '\n group(\n kube_pod_labels{label_app="jupyterhub", label_component%s"%s"%s}\n ) by (pod%s)', + '\n group(\n kube_pod_labels{label_app="jupyterhub", label_component%s"%s"%s}\n ) by (label_component, pod%s)', [ cmp, component,