We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92bdb87 + db429bd commit 0bacea2Copy full SHA for 0bacea2
postgres_mixin/alerts/postgres.libsonnet
@@ -61,8 +61,8 @@
61
summary: 'PostgreSQL high number of slow on {{ $labels.cluster }} for database {{ $labels.datname }} ',
62
},
63
expr: |||
64
- avg(
65
- rate by (datname) (
+ avg by (datname) (
+ rate (
66
pg_stat_activity_max_tx_duration{datname!~"template.*",%(postgresExporterSelector)s}[2m]
67
)
68
) > 2 * 60
0 commit comments