Skip to content

Commit db429bd

Browse files
committed
postgres_mixin/alerts: fix incorrect promql aggregation
Signed-off-by: Paweł Krupa (paulfantom) <[email protected]>
1 parent 92bdb87 commit db429bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgres_mixin/alerts/postgres.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
summary: 'PostgreSQL high number of slow on {{ $labels.cluster }} for database {{ $labels.datname }} ',
6262
},
6363
expr: |||
64-
avg(
65-
rate by (datname) (
64+
avg by (datname) (
65+
rate (
6666
pg_stat_activity_max_tx_duration{datname!~"template.*",%(postgresExporterSelector)s}[2m]
6767
)
6868
) > 2 * 60

0 commit comments

Comments
 (0)