Skip to content

Commit

Permalink
Fix Memory Requests table in Cluster dashboard
Browse files Browse the repository at this point in the history
The table currently has an extra label which causes all of the columns
to be mislabled.
  • Loading branch information
csmarchbanks committed Apr 17, 2019
1 parent 6187d7d commit ab5d75c
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 ab5d75c

Please sign in to comment.