]> git.openstreetmap.org Git - chef.git/commitdiff
Fix errors in alert rules
authorTom Hughes <tom@compton.nu>
Sun, 23 Oct 2022 18:41:26 +0000 (19:41 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 23 Oct 2022 18:41:26 +0000 (19:41 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index af3d7ab23a48c820ef8afebfa650448201e1b915..6a9ad6120fd7b1fc73e0afd64f4b82460bf8eaf5 100644 (file)
@@ -344,7 +344,7 @@ groups:
   - name: nominatim
     rules:
       - alert: nominatim replication delay
-        expr: nominatim_replication_delay > 3h
+        expr: nominatim_replication_delay > 10800
         for: 1h
         labels:
           alertgroup: nominatim
@@ -353,14 +353,14 @@ groups:
   - name: overpass
     rules:
       - alert: overpass osm database age
-        expr: overpass_database_age_seconds{database="osm"} > 5m
+        expr: overpass_database_age_seconds{database="osm"} > 300
         for: 5m
         labels:
           alertgroup: overpass
         annotations:
           age: "{{ $value | humanizeDuration }}"
       - alert: overpass area database age
-        expr: overpass_database_age_seconds{database="area"} > 24h
+        expr: overpass_database_age_seconds{database="area"} > 86400
         for: 1h
         labels:
           alertgroup: overpass