Skip to content

Commit

Permalink
Add a dashboard to show ConfigMap sizes
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
  • Loading branch information
stevekuznetsov committed Jul 12, 2019
1 parent 7f5cf5c commit 16e71a4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions prow/cluster/monitoring/mixins/grafana_dashboards/hook.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,26 @@ dashboard.new(
x: 12,
y: 13,
})
.addPanel(
(graphPanel.new(
'configmap capacities',
description='prow_configmap_size_bytes / 1048576',
datasource='prometheus',
legend_alignAsTable=true,
legend_rightSide=true,
legend_values=true,
legend_current=true,
legend_sort='current',
legend_sortDesc=true,
formatY1='percentunit',
) + legendConfig)
.addTarget(prometheus.target(
'prow_configmap_size_bytes / 1048576',
legendFormat='{{namespace}}/{{name}}',
)), gridPos={
h: 9,
w: 24,
x: 12,
y: 13,
})
+ dashboardConfig

0 comments on commit 16e71a4

Please sign in to comment.