Skip to content

Commit

Permalink
Merge pull request #599 from Elbehery/add_wss_to_pod_mem_usg
Browse files Browse the repository at this point in the history
dashboards:  add "WSS" to the memory_usage widget label in grafana
  • Loading branch information
paulfantom authored Apr 22, 2021
2 parents b7803e0 + 8e9ad84 commit 71cc61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboards/resources/pod.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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' },
Expand Down

0 comments on commit 71cc61a

Please sign in to comment.