Skip to content

Commit 92e1910

Browse files
authored
use average for cpu utilization to aligns with AWS best practice (#1674)
Signed-off-by: yduartep <[email protected]>
1 parent b7145de commit 92e1910

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,29 @@ 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)
72+
.addYaxis(
73+
format='percent',
74+
max=100,
75+
min=0,
76+
)
77+
.addYaxis()
78+
.addTarget(
79+
grafana.target.prometheus.new(
80+
expr='aws_rds_cpuutilization_average{%s}' % [allLabels],
81+
legendFormat='{{dimension_DBInstanceIdentifier}}',
82+
datasource='$datasource',
83+
),
84+
),
85+
86+
grafana.panel.graph.new(
87+
title='CPU utilization maximum',
88+
datasource='$datasource',
89+
)
90+
.setGridPos(w=12, h=8, x=12)
7291
.addYaxis(
7392
format='percent',
7493
max=100,

0 commit comments

Comments
 (0)