]> git.openstreetmap.org Git - chef.git/commitdiff
Fix incorrect change to replication lag alerts
authorTom Hughes <tom@compton.nu>
Mon, 3 Jul 2023 16:46:24 +0000 (17:46 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 3 Jul 2023 16:46:24 +0000 (17:46 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 3c448cc2a3a515e00090d7bf9eab34c9b1d01c1c..396de8de43001ed12dbce7aeca8a26f1fc55b0df 100644 (file)
@@ -99,7 +99,7 @@ groups:
   - name: database
     rules:
       - alert: postgres replication delay
-        expr: pg_replication_lag > 30
+        expr: pg_replication_lag_seconds > 30
         for: 15m
         labels:
           alertgroup: database
@@ -507,7 +507,7 @@ groups:
         labels:
           alertgroup: "{{ $labels.instance }}"
       - alert: postgresql replication delay
-        expr: pg_replication_lag > 30
+        expr: pg_replication_lag_seconds > 30
         for: 15m
         labels:
           alertgroup: "{{ $labels.instance }}"