From 595c11003dba95977c6bb70da2b587b4d0c663e5 Mon Sep 17 00:00:00 2001 From: elbehery Date: Thu, 22 Apr 2021 14:22:15 +0200 Subject: [PATCH 1/2] add working_set_size to pod_memory_usage --- dashboards/resources/pod.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboards/resources/pod.libsonnet b/dashboards/resources/pod.libsonnet index 4fa5cab9c..e8e54c219 100644 --- a/dashboards/resources/pod.libsonnet +++ b/dashboards/resources/pod.libsonnet @@ -243,7 +243,7 @@ local template = grafana.template; 'sum(container_memory_cache{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container != "", container != "POD"}) by (container)' % $._config, 'sum(container_memory_swap{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container != "", container != "POD"}) by (container)' % $._config, ], tableStyles { - 'Value #A': { alias: 'Memory Usage', unit: 'bytes' }, + 'Value #A': { alias: 'Memory Usage (WSS)', unit: 'bytes' }, 'Value #B': { alias: 'Memory Requests', unit: 'bytes' }, 'Value #C': { alias: 'Memory Requests %', unit: 'percentunit' }, 'Value #D': { alias: 'Memory Limits', unit: 'bytes' }, From 8e9ad84d68134f7b031c59cc5650dcba0f1eb99f Mon Sep 17 00:00:00 2001 From: elbehery Date: Thu, 22 Apr 2021 15:16:09 +0200 Subject: [PATCH 2/2] add tag to mem_usg panel --- dashboards/resources/pod.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboards/resources/pod.libsonnet b/dashboards/resources/pod.libsonnet index e8e54c219..eba5f3173 100644 --- a/dashboards/resources/pod.libsonnet +++ b/dashboards/resources/pod.libsonnet @@ -191,7 +191,7 @@ local template = grafana.template; .addRow( g.row('Memory Usage') .addPanel( - g.panel('Memory Usage') + + g.panel('Memory Usage (WSS)') + g.queryPanel([ 'sum(container_memory_working_set_bytes{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!="", image!=""}) by (container)' % $._config, memRequestsQuery,