From: Tom Hughes Date: Sat, 13 Aug 2022 14:17:19 +0000 (+0100) Subject: Exclude nominatim databases from deadlock alerts X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/52d0c6357c9d5afe687c8302d02a6e14cb6cecf4 Exclude nominatim databases from deadlock alerts --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 28a5b3113..ab8cfe3ec 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -407,7 +407,7 @@ groups: annotations: connections_used: "{{ $value | humanizePercentage }}" - alert: postgresql deadlocks - expr: increase(pg_stat_database_deadlocks[1m]) > 5 + expr: increase(pg_stat_database_deadlocks{datname!="nominatim"}[1m]) > 5 for: 0m labels: alertgroup: "{{ $labels.instance }}"