Skip to content

Commit 0bacea2

Browse files
authored
Merge pull request prometheus-community#635 from paulfantom/fix-promql
postgres_mixin/alerts: fix incorrect promql aggregation
2 parents 92bdb87 + db429bd commit 0bacea2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgres_mixin/alerts/postgres.libsonnet

+2-2
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)