From: Tom Hughes Date: Sun, 23 Oct 2022 18:41:26 +0000 (+0100) Subject: Fix errors in alert rules X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/7dade8a248c510d4ee5ed24b505fe8ed1e299d41?hp=be034eb48e91a0e406d71bb4aa65368924943fbd Fix errors in alert rules --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index af3d7ab23..6a9ad6120 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -344,7 +344,7 @@ groups: - name: nominatim rules: - alert: nominatim replication delay - expr: nominatim_replication_delay > 3h + expr: nominatim_replication_delay > 10800 for: 1h labels: alertgroup: nominatim @@ -353,14 +353,14 @@ groups: - name: overpass rules: - alert: overpass osm database age - expr: overpass_database_age_seconds{database="osm"} > 5m + expr: overpass_database_age_seconds{database="osm"} > 300 for: 5m labels: alertgroup: overpass annotations: age: "{{ $value | humanizeDuration }}" - alert: overpass area database age - expr: overpass_database_age_seconds{database="area"} > 24h + expr: overpass_database_age_seconds{database="area"} > 86400 for: 1h labels: alertgroup: overpass