RabbitMQ: How to monitor the specific queue metric from the Grafana
search cancel

RabbitMQ: How to monitor the specific queue metric from the Grafana

book

Article ID: 388175

calendar_today

Updated On: 02-13-2025

Products

VMware RabbitMQ VMware Tanzu RabbitMQ VMware vFabric RabbitMQ 2.x Pivotal RabbitMQ

Issue/Introduction

Generally, the Grafana did not show the specific queue metric. All the information are aggregated by the Rabbitmq server. 

But some customers may want to monitor the specific queue and please follow the below guide to configure. We tested it in the lab and it worked.

 

Resolution

1. Add the following line to rabbitmq.conf
 
prometheus.return_per_object_metrics = true
 
2. Restart the rabbitmq service
 
3. Go to the grafana and add or edit the dashboard, add the following query
rabbitmq_queue_messages_ready{queue="qq1"}
 
 
 
4. It will monitor the particular queue, in this example, we monitor the ready messages in  qq1 and qq2 resepectively.