RabbitMQ’s Prometheus guidance favors scraping every node separately, using aggregated metrics by default, and filtering detailed metrics to critical queues to control series growth.
Last updated
The RabbitMQ Prometheus plugin exposes metrics for nodes, queues, connections and channels. Aggregated mode keeps the response size roughly stable as object counts grow, but it does not provide per-queue alerting; per-object mode creates a series for each object-metric pair and can grow substantially in clusters with many queues or connections.
The plugin uses TCP port 15692 by default, while the documentation’s TLS examples use port 15691. Each node exposes its own metrics, so the monitoring setup should scrape every node separately rather than relying on a load balancer. The plugin also supports authentication, and access to its listener should be restricted with a firewall or TLS where appropriate.
The recommended operating pattern is to retain aggregated /metrics for an overview and use /metrics/detailed only for selected queues. That endpoint can filter metric families, virtual hosts and queue names with a regular expression, such as queues beginning with ^orders-. The /metrics/per-object endpoint always returns per-object data, while /metrics/memory-breakdown can be costly because it iterates over Erlang processes and should be scraped rarely or not at all.
Useful signals include node memory, disk space and file descriptors; queue messages ready, unacknowledged messages and consumer counts; and connection and channel activity. RabbitMQ’s documentation recommends a production scrape interval of at least 15 seconds and a collect_statistics_interval of 10000 milliseconds, compared with defaults of 60 seconds and 5000 milliseconds. Alert thresholds should be adapted to each workload, and cluster-wide metrics such as rabbitmq_cluster_vhost_status must not be aggregated across nodes.