From: Tom Hughes Date: Sat, 3 Dec 2022 15:02:22 +0000 (+0000) Subject: Add some passenger alerts X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/2c1479b9b228b234ea3514060ac2071e4caa1e4a?ds=sidebyside Add some passenger alerts --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 95d3ebde2..3dd1af873 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -401,6 +401,23 @@ groups: 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