]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/alert_rules.yml.erb
Fix incorrect change to replication lag alerts
[chef.git] / 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 }}"