Skip to content

Commit cea3108

Browse files
authored
Merge pull request #712 from stackhpc/rabbitmq-connection-alert
Adapt RabbitMQ connection alert threshold
2 parents a9dd80b + ce76182 commit cea3108

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)