]> git.openstreetmap.org Git - chef.git/commitdiff
Add alert rule for nominatim replication delay
authorTom Hughes <tom@compton.nu>
Sun, 23 Oct 2022 17:59:22 +0000 (18:59 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 23 Oct 2022 18:00:23 +0000 (19:00 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index d4ec7de6d4aa45bc331e382c3412f47cae87ebf5..af3d7ab23a48c820ef8afebfa650448201e1b915 100644 (file)
@@ -341,6 +341,15 @@ groups:
           alertgroup: "{{ $labels.instance }}"
         annotations:
           entries_used: "{{ $value | humanizePercentage }}"
+  - name: nominatim
+    rules:
+      - alert: nominatim replication delay
+        expr: nominatim_replication_delay > 3h
+        for: 1h
+        labels:
+          alertgroup: nominatim
+        annotations:
+          delay: "{{ $value | humanizeDuration }}"
   - name: overpass
     rules:
       - alert: overpass osm database age