]> git.openstreetmap.org Git - chef.git/commitdiff
Add some alerts for taginfo
authorTom Hughes <tom@compton.nu>
Sun, 23 Apr 2023 15:13:58 +0000 (16:13 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 23 Apr 2023 15:13:58 +0000 (16:13 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 8cf1776694f3f15573e49e32e4bbbe2b30e575f6..5474e7e38b9d824ac9157ef372d26111c9149163 100644 (file)
@@ -650,6 +650,29 @@ groups:
         for: 0m
         labels:
           alertgroup: "{{ $labels.instance }}"
+  - name: taginfo
+    rules:
+      - alert: taginfo planet age
+        expr: time() - taginfo_data_from_seconds > 129600
+        for: 0m
+        labels:
+          alertgroup: taginfo
+        annotations:
+          age: "{{ $value | humanizeDuration }}"
+      - alert: taginfo database age
+        expr: time() - taginfo_database_update_finish_seconds > 129600
+        for: 0m
+        labels:
+          alertgroup: taginfo
+        annotations:
+          age: "{{ $value | humanizeDuration }}"
+      - alert: taginfo database size
+        expr: abs(delta(taginfo_database_size_bytes[30m])) / taginfo_database_size_bytes > 0.1
+        for: 0m
+        labels:
+          alertgroup: taginfo
+        annotations:
+          size_change: "{{ $value | humanizePercentage }}"
   - name: tile
     rules:
       - alert: renderd replication delay