From: Tom Hughes Date: Sun, 23 Oct 2022 17:55:53 +0000 (+0100) Subject: Add alert rules for overpass database age X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/fa58c4b5ec0ad39f5b72f4079c657f7094cf634c Add alert rules for overpass database age --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 23b94727c..d4ec7de6d 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -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