From: Tom Hughes Date: Sun, 23 Oct 2022 17:59:22 +0000 (+0100) Subject: Add alert rule for nominatim replication delay X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/be034eb48e91a0e406d71bb4aa65368924943fbd Add alert rule for nominatim replication delay --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index d4ec7de6d..af3d7ab23 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -341,6 +341,15 @@ groups: alertgroup: "{{ $labels.instance }}" annotations: entries_used: "{{ $value | humanizePercentage }}" + - name: nominatim + rules: + - alert: nominatim replication delay + expr: nominatim_replication_delay > 3h + for: 1h + labels: + alertgroup: nominatim + annotations: + delay: "{{ $value | humanizeDuration }}" - name: overpass rules: - alert: overpass osm database age