From 45f4b3f347f1ca401471993e9a115eb7686e4a25 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Mon, 8 Jan 2024 16:37:46 +0300 Subject: 2024-01-08 --- modules/nixos/monitoring/rules/postgres.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/nixos/monitoring') diff --git a/modules/nixos/monitoring/rules/postgres.yaml b/modules/nixos/monitoring/rules/postgres.yaml index 6aee560..6a98c92 100644 --- a/modules/nixos/monitoring/rules/postgres.yaml +++ b/modules/nixos/monitoring/rules/postgres.yaml @@ -131,12 +131,12 @@ groups: expr: >- sum by (namespace,datname) ( - (rate(pg_stat_database_xact_rollback{datname!~"template.*|postgres",datid!="0"}[3m])) + (rate(pg_stat_database_xact_rollback{datname!~"template.*|postgres|dendrite",datid!="0"}[3m])) / ( - (rate(pg_stat_database_xact_rollback{datname!~"template.*|postgres",datid!="0"}[3m])) + (rate(pg_stat_database_xact_rollback{datname!~"template.*|postgres|dendrite",datid!="0"}[3m])) + - (rate(pg_stat_database_xact_commit{datname!~"template.*|postgres",datid!="0"}[3m])) + (rate(pg_stat_database_xact_commit{datname!~"template.*|postgres|dendrite",datid!="0"}[3m])) ) ) > 0.10 -- cgit v1.2.3