FAQ - Queue Depth Threshold Configuration
Section titled “FAQ - Queue Depth Threshold Configuration”Question
Section titled “Question”How do I prevent alerts for temporary queue depth spikes?
Answer
Section titled “Answer”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.
Threshold Configuration Strategy
Section titled “Threshold Configuration Strategy”1. Analyze Historical Patterns
Section titled “1. Analyze Historical Patterns”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)
2. Set Thresholds by Queue Type
Section titled “2. Set Thresholds by Queue Type”| 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
4. Account for Consumer Capacity
Section titled “4. Account for Consumer Capacity”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.
Configuration in Nodinite
Section titled “Configuration in Nodinite”- 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
- Configure the Message Count thresholds:
- ⚠️ Warning: 500 messages
- ❌ Error: 2,000 messages
- 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.
Next Steps
Section titled “ Next Steps” Configuration Guide
Monitoring RabbitMQ Features