From 7dade8a248c510d4ee5ed24b505fe8ed1e299d41 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 23 Oct 2022 19:41:26 +0100 Subject: [PATCH] Fix errors in alert rules --- cookbooks/prometheus/templates/default/alert_rules.yml.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5