From ab5d75c14aac8bf8570920816e6671a07cb95e9f Mon Sep 17 00:00:00 2001 From: Chris Marchbanks Date: Wed, 17 Apr 2019 12:52:35 -0600 Subject: [PATCH] Fix Memory Requests table in Cluster dashboard The table currently has an extra label which causes all of the columns to be mislabled. --- dashboards/resources.libsonnet | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dashboards/resources.libsonnet b/dashboards/resources.libsonnet index d4487a89d..23c65820d 100644 --- a/dashboards/resources.libsonnet +++ b/dashboards/resources.libsonnet @@ -112,12 +112,11 @@ local g = import 'grafana-builder/grafana.libsonnet'; 'sum(kube_pod_container_resource_limits_memory_bytes{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config, 'sum(container_memory_rss{%(clusterLabel)s="$cluster", container_name!=""}) by (namespace) / sum(kube_pod_container_resource_limits_memory_bytes{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config, ], tableStyles { - 'Value #C': { alias: 'CPU Usage' }, - 'Value #D': { alias: 'Memory Usage', unit: 'bytes' }, - 'Value #E': { alias: 'Memory Requests', unit: 'bytes' }, - 'Value #F': { alias: 'Memory Requests %', unit: 'percentunit' }, - 'Value #G': { alias: 'Memory Limits', unit: 'bytes' }, - 'Value #H': { alias: 'Memory Limits %', unit: 'percentunit' }, + 'Value #C': { alias: 'Memory Usage', unit: 'bytes' }, + 'Value #D': { alias: 'Memory Requests', unit: 'bytes' }, + 'Value #E': { alias: 'Memory Requests %', unit: 'percentunit' }, + 'Value #F': { alias: 'Memory Limits', unit: 'bytes' }, + 'Value #G': { alias: 'Memory Limits %', unit: 'percentunit' }, }) ) ) + { tags: $._config.grafanaK8s.dashboardTags },