---
title: FAQ - Dead Letter Exchange Monitoring
description: "Monitor RabbitMQ dead-letter queues with Nodinite: an Error count limit of 0 alerts on the first dead-lettered message, and the message age shows how long it has waited."
---

# FAQ - Dead Letter Exchange Monitoring

## Question

Can I monitor the dead letter exchange?

## Answer

**Yes, through its dead-letter queue.** A dead letter exchange (DLX) routes messages to one or more dead-letter queues, and the agent monitors those queues like any other queue: message count, share of the max length, and age of the oldest message. Set the dead-letter queue's Error count limit to 0, so the first dead-lettered message raises an alert. The agent doesn't read exchanges, so it monitors the queue, not the exchange itself.

## Why Monitor Dead-Letter Queues

Dead-letter queues collect your delivery failures, and the message age shows how long the oldest one has waited. RabbitMQ dead-letters a message when:

* **A consumer rejects it** (negative acknowledgment with requeue=false)
* **Its TTL expires** (it waited longer than the queue's or the message's time-to-live)
* **The queue's length limit is reached** (the oldest messages are dead-lettered)

**Without monitoring:** messages collect in the dead-letter queue, and nobody sees how many orders, payments, or events failed.

**With monitoring:** an alert fires on the first dead-lettered message, so the team investigates before the business notices.

## Configuration Strategy

### 1. Identify the Dead-Letter Queues

A dead letter exchange typically routes to dedicated queues, such as:

* `dlx.orders` (orders that failed delivery)
* `dlx.payments` (rejected payment messages)
* `dlx.events` (expired events)

### 2. Set Strict Thresholds

Use **Edit** on the queue's [Resource][Resources] (see [Managing RabbitMQ][Managing]):

|Threshold|Value|Reasoning|  
|---|---|---|  
|⚠️ **Warning** count|0 messages|Any message in a dead-letter queue means a delivery failed|  
|❌ **Error** count|10 messages|Many failures point to a systemic problem|  
|❌ **Error** age|1 hour|A dead-lettered message nobody handled within an hour|  

The age check needs the RabbitMQ Message Timestamp plugin; see [Monitoring RabbitMQ][Monitoring].

### 3. Alert the Right Team

Put the dead-letter queues in a [Monitor View][Monitor Views] with an [Alarm Plugin][Alarm Plugins] for the team that owns the failing flow.

## Investigation Workflow

When a dead-letter queue alerts:

1. **Check the message count and Details** in :Nodinite: – one message or a flood
2. **Read the `x-death` header** in RabbitMQ's own tools – it holds the reason, the original queue, and the time
3. **Fix the root cause** – a consumer bug, a consumer that is too slow or offline, or a backlog that hit the length limit
4. **Decide what happens to the messages** in RabbitMQ: requeue them, delete them, or archive them

## :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]  
:fa-sliders: [FAQ - Queue Depth Thresholds][]  

[Alarm Plugins]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/What%20is%20an%20Alarm%20Plugin.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Getting%20started/3.%20Configuration.md
[FAQ - Queue Depth Thresholds]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Troubleshooting/FAQ%20-%20Queue%20Depth%20Thresholds.md
[Managing]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Features/Managing%20RabbitMQ.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
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md
[Troubleshooting]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Troubleshooting/Overview.md