Skip to content

Commit 3302535

Browse files
author
Muhammad Shahzeb
committed
Add datname in alert group by
1 parent 4fe5f57 commit 3302535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres_mixin/alerts/postgres.libsonnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
summary: 'PostgreSQL high number of slow queries.',
6262
},
6363
expr: |||
64-
avg by (%(agg)s) (
64+
avg by (datname, %(agg)s) (
6565
rate (
6666
pg_stat_activity_max_tx_duration{%(dbNameFilter)s, %(postgresExporterSelector)s}[2m]
6767
)

0 commit comments

Comments
 (0)