Skip to content

Commit 7a47fcb

Browse files
committed
show both average and maximum for rds cpu utilization
Signed-off-by: yduartep <[email protected]>
1 parent 7502611 commit 7a47fcb

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

Diff for: mixin/dashboards/rds.libsonnet

+21-2
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ grafana.dashboard.new(
6565
.setGridPos(w=24, h=3),
6666

6767
grafana.panel.graph.new(
68-
title='CPU utilization',
68+
title='CPU utilization average',
6969
datasource='$datasource',
7070
)
71-
.setGridPos(w=24, h=8)
71+
.setGridPos(w=12, h=8)
7272
.addYaxis(
7373
format='percent',
7474
max=100,
@@ -83,6 +83,25 @@ grafana.dashboard.new(
8383
),
8484
),
8585

86+
grafana.panel.graph.new(
87+
title='CPU utilization maximum',
88+
datasource='$datasource',
89+
)
90+
.setGridPos(w=12, h=8, x=12)
91+
.addYaxis(
92+
format='percent',
93+
max=100,
94+
min=0,
95+
)
96+
.addYaxis()
97+
.addTarget(
98+
grafana.target.prometheus.new(
99+
expr='aws_rds_cpuutilization_maximum{%s}' % [allLabels],
100+
legendFormat='{{dimension_DBInstanceIdentifier}}',
101+
datasource='$datasource',
102+
),
103+
),
104+
86105
grafana.panel.graph.new(
87106
title='Database connections count',
88107
datasource='$datasource',

0 commit comments

Comments
 (0)