From: Sarah Hoffmann Date: Wed, 12 Jun 2024 14:23:53 +0000 (+0200) Subject: add prometheus alert for too many parallel connections to nominatim X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/98c9ef96146854a2f0fd8c342dae33fde8596155 add prometheus alert for too many parallel connections to nominatim --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index fdb90765b..dfb83891d 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -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