]> git.openstreetmap.org Git - chef.git/commitdiff
Add some passenger alerts
authorTom Hughes <tom@compton.nu>
Sat, 3 Dec 2022 15:02:22 +0000 (15:02 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 3 Dec 2022 15:02:22 +0000 (15:02 +0000)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 95d3ebde203aad27dfb983cdd4704afe72bb36a3..3dd1af873d8fdc8ef227327c5e7b64fc61e00506 100644 (file)
@@ -401,6 +401,23 @@ groups:
           alertgroup: overpass
         annotations:
           age: "{{ $value | humanizeDuration }}"
           alertgroup: overpass
         annotations:
           age: "{{ $value | humanizeDuration }}"
+  - name: passenger
+    rules:
+      - alert: passenger down
+        expr: passenger_up == 0
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.instance }}"
+      - alert: passenger queuing
+        expr: passenger_top_level_request_queue > 0
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.instance }}"
+      - alert: passenger application queuing
+        expr: passenger_app_request_queue > 0
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.instance }}"
   - name: planet
     rules:
       - alert: planet dump overdue
   - name: planet
     rules:
       - alert: planet dump overdue