]> git.openstreetmap.org Git - chef.git/commitdiff
Add alert rules for overpass database age
authorTom Hughes <tom@compton.nu>
Sun, 23 Oct 2022 17:55:53 +0000 (18:55 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 23 Oct 2022 18:00:18 +0000 (19:00 +0100)
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