]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/alert_rules.yml.erb
Add alert rules for overpass database age
[chef.git] / cookbooks / prometheus / templates / default / alert_rules.yml.erb
index 23b94727cfc6e47b929467f01baab325559653a0..d4ec7de6d4aa45bc331e382c3412f47cae87ebf5 100644 (file)
@@ -341,6 +341,22 @@ groups:
           alertgroup: "{{ $labels.instance }}"
         annotations:
           entries_used: "{{ $value | humanizePercentage }}"
+  - name: overpass
+    rules:
+      - alert: overpass osm database age
+        expr: overpass_database_age_seconds{database="osm"} > 5m
+        for: 5m
+        labels:
+          alertgroup: overpass
+        annotations:
+          age: "{{ $value | humanizeDuration }}"
+      - alert: overpass area database age
+        expr: overpass_database_age_seconds{database="area"} > 24h
+        for: 1h
+        labels:
+          alertgroup: overpass
+        annotations:
+          age: "{{ $value | humanizeDuration }}"
   - name: planet
     rules:
       - alert: planet dump overdue