Skip to content

Commit 7e6a855

Browse files
authored
feat: add database connections average panel (#1691)
Signed-off-by: yduartep <[email protected]>
1 parent 6b7a641 commit 7e6a855

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

mixin/dashboards/rds.libsonnet

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,26 @@ grafana.dashboard.new(
102102
),
103103
),
104104

105+
grafana.panel.graph.new(
106+
title='Database connections average',
107+
datasource='$datasource',
108+
)
109+
.setGridPos(w=12, h=8)
110+
.addYaxis(min=0)
111+
.addYaxis()
112+
.addTarget(
113+
grafana.target.prometheus.new(
114+
expr='aws_rds_database_connections_average{%s}' % [allLabels],
115+
legendFormat='{{dimension_DBInstanceIdentifier}}',
116+
datasource='$datasource',
117+
),
118+
),
119+
105120
grafana.panel.graph.new(
106121
title='Database connections count',
107122
datasource='$datasource',
108123
)
109-
.setGridPos(w=24, h=8)
124+
.setGridPos(w=12, h=8, x=12)
110125
.addYaxis(min=0)
111126
.addYaxis()
112127
.addTarget(

0 commit comments

Comments
 (0)