Skip to content

Commit

Permalink
Merge pull request #191 from kubernetes-monitoring/fix-extra-column
Browse files Browse the repository at this point in the history
Fix Memory Requests table in Cluster dashboard
  • Loading branch information
metalmatze authored Apr 24, 2019
2 parents 7360753 + ab5d75c commit 0d08183
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions dashboards/resources.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 0d08183

Please sign in to comment.