How Do You Monitor RabbitMQ Performance Effectively?
Most teams set up RabbitMQ monitoring by enabling the management plugin and watching the queue list. That works in development. In production it does not, because the management plugin is built for ad-hoc inspection, not for time-series alerting, and because watching queue length without context misses the actual failure modes. Effective monitoring requires a different approach: Prometheus scraping rabbitmq_prometheus, a handful of carefully chosen alerts, and an understanding of which metrics are leading indicators and which are lagging.
This guide covers how to monitor RabbitMQ effectively, which metrics matter, and where to set alerts.
Quick Answer
Effective RabbitMQ monitoring uses the rabbitmq_prometheus plugin scraped by Prometheus, with Grafana dashboards for visualisation. The metrics that matter most are: queue depth (messages_ready, messages_unacknowledged), throughput (publish, deliver, ack rates), consumer state (consumer_capacity, consumer count), broker resources (memory_used, disk_free), connection health (count and churn), and cluster state (partition status). Alert on rate of change and sustained conditions, not on instantaneous absolute values. The management plugin is acceptable for development but should not be the basis of production alerting.
Why Management Plugin Monitoring Is Not Enough
The management plugin maintains an in-memory stats database to power its UI. It works well for development and small clusters. In production it has three significant limitations:
- In-memory stats compete with broker memory for the same budget. A heavily loaded cluster spends increasing memory on the stats DB itself.
- The system being monitored and the monitoring system are coupled. If the broker is in distress, the management UI is too.
- Retention is limited. The stats DB holds hours of data, not weeks. Trend analysis and capacity planning need a real time-series store.
Use the management plugin for ad-hoc inspection. Use Prometheus for monitoring and alerting.
Setting Up Prometheus Monitoring
1. Enable the plugin
rabbitmq-plugins enable rabbitmq_prometheus
The plugin is shipped with RabbitMQ since 3.8 and is enabled automatically by the Kubernetes Operator.
2. Verify the endpoint
curl -s http://localhost:15692/metrics | head
Port 15692 is the default; configurable via prometheus.tcp.port.
3. Scrape every node
Every node in a cluster exposes its own node-specific metrics. Scrape all of them; do not rely on a single node aggregating for the cluster.
# prometheus.yml excerpt
scrape_configs:
- job_name: rabbitmq
scrape_interval: 15s
static_configs:
– targets:
– rabbit-1.example:15692
– rabbit-2.example:15692
– rabbit-3.example:15692
4. Decide on aggregation mode
The plugin defaults to aggregated metrics. For clusters with many queues, this keeps payload size reasonable. For diagnostics, the /metrics/per-object endpoint returns one series per queue, exchange, and connection; expensive to scrape continuously, useful for spot diagnosis.
5. Import Grafana dashboards
The RabbitMQ team publishes a set of opinionated Grafana dashboards (Overview, Quorum Queues, Streams, etc.). Start with these. Customise after you understand what each panel is showing.
What to Monitor
Queue state
rabbitmq_queue_messages_ready(ready for delivery)rabbitmq_queue_messages_unacked(delivered but not acked)rabbitmq_queue_messages_persistent(persistent count)- Per-queue message rates (publish, deliver, ack)
These are the most actionable metrics. Sustained growth in ready or unacked is the leading indicator of consumer problems.
Throughput
- Publish rate
- Deliver rate
- Ack rate
- Redeliver rate
The interesting view is the difference between publish and ack rates over time. Sustained positive imbalance means the queue is growing; sustained negative means the queue is draining.
Consumer state
- Consumer count per queue
consumer_capacity- Unacked messages per consumer
A queue with zero consumers and rising ready count is a stalled workload. A queue with consumers at high utilisation and rising ready count is an undersized consumer pool.
Broker resources
rabbitmq_process_resident_memory_bytes- rabbitmq_disk_space_available_bytes
- File descriptor usage
- Erlang process count
- Erlang run queue
Cross-check broker metrics against host-level metrics (CPU, memory, disk I/O) to identify whether pressure is broker-internal or environmental.
Connection health
- Total connection count
- Connection open and close rates (churn)
- Channel count per connection
- Heartbeat state
A high connection churn rate is almost always a client bug, not a broker problem.
Cluster state
- Cluster partition status
- Node availability
- Queue leader distribution (for quorum queues)
- Inter-node network latency
A partition is a serious event; it should fire a high-severity alert immediately.
What to Alert On
Most alert noise comes from alerting on absolute values rather than rate of change or sustained conditions. The goal is alerts that mean something real is happening.
Page-the-on-call alerts
- Cluster partition detected.
- Memory or disk alarm active for more than 60 seconds.
- Cluster node unreachable for more than 60 seconds.
- Publishing fully blocked across the cluster.
Wake-up-investigate alerts
- Queue depth growing continuously for 10+ minutes.
messages_unacknowledgedgrowing while consumer count is stable.- Connection count rising rapidly (likely client churn).
- Quorum queue redelivery rate approaching
x-delivery-limit.
Notice-but-don’t-page alerts
- File descriptor usage above 80% of limit.
- Disk free below 30% of allocated.
- Consumer utilisation at 1.0 on a critical queue (capacity ceiling reached).
What Not to Alert On
- Absolute queue depth. A queue with 10,000 messages may be normal for one workload and a fire for another. Alert on growth, not absolute value.
- Brief spikes. Most metrics spike under load. Alerts on instantaneous values produce noise and train responders to ignore them.
- Per-queue ready count for short-lived queues. Auto-delete or short-TTL queues will appear and disappear; alerts on individual queue names will flap.
Health Checks vs Monitoring
These are different. Monitoring tells you whether the broker is behaving correctly over time. Health checks tell a load balancer or orchestrator whether to route traffic.
For Kubernetes, the RabbitMQ Kubernetes Operator configures a TCP port check on the AMQP port as the readiness probe, and no liveness probe. That is the recommended pattern. Aggressive liveness probes that restart the broker on health-check failure are a common source of self-inflicted outages.
Common Mistakes
Mistake 1: Alerting on the management plugin’s stats
The management plugin’s stats DB is best-effort. Alerts driven from its HTTP API can flap when the broker is under load. Use Prometheus.
Mistake 2: Per-object metrics in production
/metrics/per-object is computationally expensive. On large clusters it can take tens of seconds and produce huge payloads. Use aggregated metrics for continuous scraping; use per-object only for short diagnostic windows.
Mistake 3: Scraping only one node
Every node has its own metrics. Scraping one node misses node-specific data and produces blind spots.
Mistake 4: No alert on partition status
Cluster partitions are silent in the sense that the broker keeps responding. Without an alert, you find out when consumers report missing messages.
Mistake 5: Watching the dashboard instead of alerting
Dashboards are for diagnosis. Alerts are for detection. Teams that rely on visual inspection miss incidents that happen overnight.
Version Notes
- Some metric names changed in RabbitMQ 4.0. The RabbitMQ Grafana dashboards have been updated accordingly; if you have custom dashboards built against 3.x metric names, audit them before upgrading.
- The Prometheus plugin is shipped and enabled by default in many distributions from 3.8 onward; on Kubernetes it is enabled by the Operator.
- AMQP 1.0 metrics are now exposed natively in 4.x without enabling a separate plugin.
Summary Table
| Concern | Primary metric | Alert pattern | Why |
| Queue backlog | messages_ready | Sustained growth 10+ min | Leading indicator |
| Stalled consumers | messages_unacknowledged | Growth while consumer count stable | Acks failing |
| Resource alarm | rabbitmq_alarms_memory_used_watermark, rabbitmq_alarms_free_disk_space_watermark | Alarm active >60s | Publishers blocked |
| Cluster partition | partition state | Partition detected | Data divergence risk |
| Connection churn | open/close rate | Rapid rise in churn | Likely client bug |
| Quorum redelivery | redelivery counts | Approaching x-delivery-limit | Poison loop |
Metrics to Monitor
| Metric | What it tells you | Severity |
messages_ready per queue | Backlog | Page if growing 10+ min |
| messages_unacknowledged per queue | Held by consumers | Page if growing with stable consumers |
rabbitmq_process_resident_memory_bytes vs rabbitmq_resident_memory_limit_bytes | Broker memory pressure | Page if memory alarm fires |
rabbitmq_disk_space_available_bytes vs rabbitmq_disk_space_available_limit_bytes | Free disk | Page if below alarm threshold |
| Connection count | Client health | Notice if rising rapidly |
| Cluster partition | Split-brain | Page immediately |
consumer_capacity | Consumer saturation | Notice when at 1.0 sustained |
| Quorum queue leader distribution | Cluster balance | Notice if heavily skewed |
FAQs
Should I use the management plugin or Prometheus for RabbitMQ monitoring?
Prometheus for production monitoring and alerting; management plugin for ad-hoc inspection. The management plugin’s stats database is in-memory, competes with broker memory, and has limited retention. Prometheus stores time-series for trend analysis and alerting.
Which RabbitMQ metrics matter most?
Queue depth (messages_ready, messages_unacknowledged), per-queue rates (publish, deliver, ack), consumer count and utilisation, broker resources (memory, disk), and cluster partition state. Most production incidents show up in one of these before they show up anywhere else.
What is the default port for RabbitMQ Prometheus metrics?
Port 15692, endpoint /metrics. Configurable via prometheus.tcp.port. The aggregated endpoint is what you should scrape continuously; /metrics/per-object is for diagnosis.
Should I scrape every RabbitMQ node?
Yes. Every node exposes its own node-specific metrics. Scraping a single node misses data and produces blind spots. Configure Prometheus to scrape every node in the cluster.
What is the difference between aggregated and per-object metrics?
Aggregated metrics combine values by name (one series for rabbitmq_queue_messages_ready total). Per-object metrics produce one series per queue, exchange, or connection. Per-object is expensive on large clusters and should not be scraped continuously.
When should I be paged for a RabbitMQ issue?
Cluster partition, sustained resource alarm, unreachable node, fully blocked publishing. These are the conditions where every minute of delay matters. Backlog growth and connection churn are wake-up-investigate alerts, not page-immediately.
When to Get Expert Help
“If your RabbitMQ monitoring is noisy, blind, or missing the metrics that actually predict incidents, an observability review can identify which metrics to alert on, where the gaps are, and how to tune dashboards to match your workload. Seventh State reviews your Prometheus and Grafana setup, the alerts you have today, and the incidents you have had recently, then provides a tuned alert package and dashboard set that match how your applications actually use RabbitMQ.”
| Seventh State Team




