Skip to content

Commit

Permalink
Add a dashboar 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 11, 2019
1 parent 9869938 commit 78670ab
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions prow/monitoring/mixins/grafana_dashboards/hook.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,27 @@ 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 78670ab

Please sign in to comment.