Skip to content

Commit ce76182

Browse files
committed
Adapt RabbitMQ connection alert threshold
The threshold of 1000 connections to a RabbitMQ server can be easily reached even on moderately-sized deployments. On several deployments we saw around 25 connections per hypervisor and between 250 and 750 connections per controller. The threshold is based on twice these numbers to be conservative.
1 parent 208c1d8 commit ce76182

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

etc/kayobe/kolla/config/prometheus/rabbitmq.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ groups:
5656
annotations:
5757
description: RabbitMQ too much unack on {{ $labels.instance }}
5858
- alert: RabbitMQTooMuchConnections
59-
expr: rabbitmq_connections > 1000
59+
expr: rabbitmq_connections > {% endraw %}{{ (1500 * groups['controllers'] | length + 50 * groups['compute'] | length) }}{% raw %}
6060
for: 2m
6161
labels:
6262
severity: warning
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Adapt threshold of RabbitMQ connection alert based on the size of the
5+
deployment to avoid spurious alerts.

0 commit comments

Comments
 (0)