X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/25d07fd9899c0ba0e741a21eb9a590ea6073e163..1874a3b948505eb5ba23d10059597d81937fa94a:/cookbooks/prometheus/templates/default/alert_rules.yml.erb diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index a0cea5792..dfb83891d 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -118,7 +118,7 @@ groups: labels: alertgroup: database annotations: - delay: "{{ $value }}" + queries: "{{ $value }}" - name: discourse rules: - alert: discourse job failure rate @@ -488,6 +488,11 @@ groups: alertgroup: nominatim annotations: delay: "{{ $value | humanizeDuration }}" + - alert: nominatim connections + expr: sum(nginx_connections_writing and on (instance) chef_role{name="nominatim"}) > 2500 + for: 15m + labels: + alertgroup: nominatim - name: overpass rules: - alert: overpass osm database age