Skip to content
Documentation
Updated 2 minutes to read
Markdown

Can I monitor the dead letter exchange?

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.

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.

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)

Use Edit on the queue's Resource (see Managing RabbitMQ):

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.

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

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

Configuration Guide
Monitoring RabbitMQ Features

RabbitMQ Agent Overview
Troubleshooting Overview
FAQ - Queue Depth Thresholds

...

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