Skip to content

Commit

Permalink
feat: update alert threshold in prometheus rule
Browse files Browse the repository at this point in the history
Adjust the threshold for the number of transactions from frozen xid on a pod to 300,000,000 for better monitoring accuracy.

see cloudnative-pg/cloudnative-pg#5570
  • Loading branch information
billimek committed Oct 4, 2024
1 parent fd9dba2 commit 55634fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions default/cloudnative-pg/cluster/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ spec:
severity: warning
- alert: PGDatabase
annotations:
description: Over 150,000,000 transactions from frozen xid on pod {{ $labels.pod }}
description: Over 300,000,000 transactions from frozen xid on pod {{ $labels.pod }}
summary: Number of transactions from the frozen XID to the current one
expr: |-
cnpg_pg_database_xid_age > 150000000
cnpg_pg_database_xid_age > 300000000
for: 1m
labels:
severity: warning
Expand Down

0 comments on commit 55634fe

Please sign in to comment.