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 fe545b7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 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,22 @@ dashboard.new(
x: 12,
y: 13,
})
.addPanel(
(graphPanel.new(
'configmap sizes',
description='prow_configmap_size_bytes / 1048576',
datasource='prometheus',
legend_alignAsTable=true,
legend_rightSide=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 fe545b7

Please sign in to comment.