]> git.openstreetmap.org Git - chef.git/commitdiff
Reduce sensitivity of postgres replication alarms
authorTom Hughes <tom@compton.nu>
Thu, 16 Feb 2023 19:03:53 +0000 (19:03 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 16 Feb 2023 19:03:53 +0000 (19:03 +0000)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 367e07650255de3383d13955ea1b73325bf3fc8d..1736da60cf16138b80cf5d8cc50ee60e68b94555 100644 (file)
@@ -99,8 +99,8 @@ groups:
   - name: database
     rules:
       - alert: postgres replication delay
-        expr: pg_replication_lag_seconds > 5
-        for: 5m
+        expr: pg_replication_lag_seconds > 30
+        for: 15m
         labels:
           alertgroup: database
         annotations:
@@ -489,8 +489,8 @@ groups:
         labels:
           alertgroup: "{{ $labels.instance }}"
       - alert: postgresql replication delay
-        expr: pg_replication_lag_seconds > 5
-        for: 1m
+        expr: pg_replication_lag_seconds > 30
+        for: 15m
         labels:
           alertgroup: "{{ $labels.instance }}"
         annotations: