Skip to content

Commit

Permalink
RabbitMQ: add too many ready messages alert (#441)
Browse files Browse the repository at this point in the history
* RabbitMQ: add too many ready messages alert

* Add RabbitMQ ready messages alert rule

---------

Co-authored-by: Samuel Berthe <[email protected]>
  • Loading branch information
krokyze and samber authored Nov 30, 2024
1 parent 1494972 commit 353ef1e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _data/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,11 @@ groups:
query: "rabbitmq_process_open_fds / rabbitmq_process_max_fds * 100 > 90"
severity: warning
for: 2m
- name: RabbitMQ too many ready messages
description: RabbitMQ too many ready messages on {{ $labels.instace }}
query: "sum(rabbitmq_queue_messages_ready) BY (queue) > 1000"
severity: warning
for: 1m
- name: RabbitMQ too many unack messages
description: Too many unacknowledged messages
query: "sum(rabbitmq_queue_messages_unacked) BY (queue) > 1000"
Expand Down
9 changes: 9 additions & 0 deletions dist/rules/rabbitmq/rabbitmq-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ groups:
summary: RabbitMQ file descriptors usage (instance {{ $labels.instance }})
description: "A node use more than 90% of file descriptors\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"

- alert: RabbitmqTooManyReadyMessages
expr: 'sum(rabbitmq_queue_messages_ready) BY (queue) > 1000'
for: 1m
labels:
severity: warning
annotations:
summary: RabbitMQ too many ready messages (instance {{ $labels.instance }})
description: "Too many ready messages\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"

- alert: RabbitmqTooManyUnackMessages
expr: 'sum(rabbitmq_queue_messages_unacked) BY (queue) > 1000'
for: 1m
Expand Down

0 comments on commit 353ef1e

Please sign in to comment.