diff options
author | Azat Bahawi <azat@bahawi.net> | 2024-01-08 16:37:46 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2024-01-08 16:37:46 +0300 |
commit | 45f4b3f347f1ca401471993e9a115eb7686e4a25 (patch) | |
tree | fa3e14f3b620d503ba12ee733d901ae5c24f0777 /modules/nixos/monitoring/rules/postgres.yaml | |
parent | 2024-01-07 (diff) |
2024-01-08
Diffstat (limited to 'modules/nixos/monitoring/rules/postgres.yaml')
-rw-r--r-- | modules/nixos/monitoring/rules/postgres.yaml | 6 |
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 |