about summary refs log tree commit diff
path: root/modules/nixos/monitoring
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-01-08 16:37:46 +0300
committerAzat Bahawi <azat@bahawi.net>2024-01-08 16:37:46 +0300
commit45f4b3f347f1ca401471993e9a115eb7686e4a25 (patch)
treefa3e14f3b620d503ba12ee733d901ae5c24f0777 /modules/nixos/monitoring
parent2024-01-07 (diff)
2024-01-08
Diffstat (limited to '')
-rw-r--r--modules/nixos/monitoring/rules/postgres.yaml6
1 files changed, 3 insertions, 3 deletions
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

Consider giving Nix/NixOS a try! <3