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

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

<i class="fal fa-edit" aria-hidden="true"></i> [Configuration Guide][Configuration]  
<i class="fal fa-list" aria-hidden="true"></i> [Monitoring RabbitMQ Features][Monitoring]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

<i class="fal fa-book" aria-hidden="true"></i> [RabbitMQ Agent Overview][Overview]  
<i class="fal fa-question" aria-hidden="true"></i> [Troubleshooting Overview][Troubleshooting]  

[Configuration]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/getting-started/configuration/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Monitoring]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/features/monitoring-rabbitmq/
[Overview]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/overview/
[RMQQueueEdit]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/features/queue/overview/#fa-edit-edit-thresholds
[Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/rabbitmq/troubleshooting/overview/