mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 17:07:24 +08:00
PG: Alert in case of high rollback ratio (#64)
PG: Alert in case of high rollback ratio
This commit is contained in:
commit
9306d8947f
1 changed files with 4 additions and 0 deletions
|
|
@ -211,6 +211,10 @@ services:
|
|||
description: PostgreSQL executes slow queries (> 1min)
|
||||
query: 'avg(rate(pg_stat_activity_max_tx_duration{datname!~"template.*"}[1m])) BY (datname) > 60'
|
||||
severity: warning
|
||||
- name: High rollback rate
|
||||
description: Ratio of transactions being aborted compared to committed is > 2 %
|
||||
query: 'rate(pg_stat_database_xact_rollback{datname!~"template.*"}[3m]) / rate(pg_stat_database_xact_commit{datname!~"template.*"}[3m]) > 0.02'
|
||||
severity: warning
|
||||
|
||||
- name: Redis
|
||||
exporters:
|
||||
|
|
|
|||
Loading…
Reference in a new issue