From 98c9ef96146854a2f0fd8c342dae33fde8596155 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 12 Jun 2024 16:23:53 +0200 Subject: [PATCH] add prometheus alert for too many parallel connections to nominatim --- cookbooks/prometheus/templates/default/alert_rules.yml.erb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5