Check RabbitMQ Message Count

To check the total number of messages piled up in the queues of RabbitMQ, you can either use the RabbitMQ management interface or follow these steps using the command-line tool.

  1. Utilize the RabbitMQ management interface:
  2. Open the RabbitMQ management interface, usually accessed at http://localhost:15672.
  3. Please enter the correct username and password to log in.
  4. Select the “Queue” tab on the left navigation bar.
  5. On the “Queues” page, you will see a list of all the queues along with their statistics, including the “Messages” column which displays the total number of messages queued in each queue.
  6. Use the command line tool:
  7. Open the command line terminal.
  8. Connect to the RabbitMQ server using the following command: rabbitmqctl status
  9. Enter the correct username and password.
  10. In the output, you will see a list of all queues with their statistics, including the “messages” field, which shows the total number of messages accumulated in each queue.

You can easily check the total number of messages queued in RabbitMQ, whether you choose to use the RabbitMQ management interface or the command-line tool.

bannerAds