---
title: FAQ - Queue Depth Threshold Configuration
description: Learn how to configure per-queue depth thresholds to prevent false alerts from temporary queue depth spikes.
---

# FAQ - Queue Depth Threshold Configuration

## Question

How do I prevent alerts for temporary queue depth spikes?

## 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

### 1. Analyze Historical Patterns

Watch the queue for one or two weeks, in its **Details** and in the alert history of its [Monitor View][Monitor Views], 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

|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

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

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

1. Set the global queue thresholds in the agent's [Configuration][], or open the queue's **Edit** action in a [Monitor View][Monitor Views] 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][RMQQueueEdit] for every option.

## :fa-hand-point-right: Next Steps

:fa-edit: [Configuration Guide][Configuration]  
:fa-list: [Monitoring RabbitMQ Features][Monitoring]  

## :fa-link-horizontal: Related Topics

:fa-book: [RabbitMQ Agent Overview][Overview]  
:fa-question: [Troubleshooting Overview][Troubleshooting]  

[Configuration]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Getting%20started/3.%20Configuration.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Monitoring]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Features/Monitoring%20RabbitMQ.md
[Overview]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Overview.md
[RMQQueueEdit]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Features/Queue/Overview.md#fa-edit-edit-thresholds
[Troubleshooting]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Troubleshooting/Overview.md