Skip to content

Commit 26775c5

Browse files
committed
Fix RabbitMQTooMuchUnack alert description
Using `sum(rabbitmq_queue_messages_unacked)` means we loose all labels, so `{{ $labels.instance }}` in the description was empty. Fix by checking the number of messages on each host instead and lower the threshold to 100. Also, the metric rabbitmq_queue_messages_unacked has no `queue` label, so `BY (queue)` is useless.
1 parent 6ab1be7 commit 26775c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ groups:
4242
annotations:
4343
description: RabbitMQ file descriptors usage on {{ $labels.instance }}
4444
- alert: RabbitMQTooMuchUnack
45-
expr: sum(rabbitmq_queue_messages_unacked) BY (queue) > 1000
45+
expr: rabbitmq_queue_messages_unacked > 100
4646
for: 1m
4747
labels:
4848
severity: warning

0 commit comments

Comments
 (0)