Skip to content
Documentation
Updated 2 minutes to read
Markdown

How do I prevent alerts for temporary queue depth spikes?

Configure per-queue thresholds with appropriate limits for each queue's normal operating range. High-throughput queues can have higher thresholds (e.g., alert if depth >5,000) while error queues have strict thresholds (e.g., alert if depth >10). Adjust thresholds based on historical queue depth patterns and consumer capacity.

Watch the queue for one or two weeks, in its Details and in the alert history of its Monitor View, to understand:

  • Peak depth during normal operations (e.g., morning batch processing)
  • Temporary spikes (e.g., deployment restarts, consumer scaling events)
  • Sustained growth (e.g., consumer failures, performance degradation)
Queue Type Example Threshold Reasoning
Critical transactional (orders, payments) Depth >100 Should process immediately; backlog indicates consumer failure
High-throughput batch (ETL, reporting) Depth >5,000 Normal to accumulate during batch runs; alert only if excessive
Error/dead letter Depth >10 Any messages indicate failures requiring immediate investigation
Low-volume monitoring Depth >50 Rarely accumulates; small backlog indicates problem

3. Configure Warning vs Critical Thresholds

Section titled “3. Configure Warning vs Critical Thresholds”

Use multiple threshold levels:

  • ⚠️ Warning (e.g., depth >500): Notify operations, investigate when convenient
  • ❌ Critical (e.g., depth >2,000): Page on-call engineer, immediate action required

Threshold should consider:

  • Consumer processing rate (messages/second)
  • Expected recovery time (how long to clear backlog)
  • Memory constraints (large backlogs consume RAM)

Example: Consumer processes 100 messages/second. Alert threshold set at 1,000 messages = 10 seconds of backlog = reasonable buffer before investigation required.

  1. Set the global queue thresholds in the agent's Configuration, or open the queue's Edit action in a Monitor View for a queue-specific setting
  2. Configure the Message Count thresholds:
    • ⚠️ Warning: 500 messages
    • ❌ Error: 2,000 messages
  3. Configure the Allowed Timespan for the age of the oldest message (optional, needs the RabbitMQ Message Timestamp plugin):
    • ⚠️ Warning: older than 1 minute
    • ❌ Error: older than 5 minutes

A queue that keeps a steady depth while its oldest message gets older is a stuck consumer; the age threshold catches it even when the count stays below its limit. See Queue thresholds for every option.

Configuration Guide
Monitoring RabbitMQ Features

RabbitMQ Agent Overview
Troubleshooting Overview

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...