RabbitMQ monitoring

Monitor the performance of your RabbitMQ servers using Site24x7 plugin.

RabbitMQ is open source message broker software that implements the Advanced Message Queuing Protocol (AMQP). Configure our RabbitMQ monitoring tool and troubleshoot all your RabbitMQ server performance issues.

This document details how to configure the RabbitMQ plugin and the monitoring metrics for providing in-depth visibility into the performance, availability, and usage stats of RabbitMQ servers.

RabbitMQ performance monitoring metrics:

Take informed troubleshooting decisions by keeping track of critical metrics including:

File descriptors used

The total amount of file descriptors used. Helpful in ensuring access to input/output resources such as files is intact.

Memory used

The total amount of memory used by the RabbitMQ queuing services in bytes.

Queued messages

The average number of Erlang processes waiting to run in a queue. For ease of understanding, they are numbered by depicting them as processes.

Sockets used

The total number of file descriptors used as sockets.

Partitions

The total number of network partitions that this node is seeing.

Consumers

The total number of consumers.

Ready messages

The total number of messages ready to be delivered to clients.

Unacknowledged messages

The total number of messages delievered to clients that are yet to be acknowledged.

Message rate

Count of the total messages that are in the queue .

How it works?

  • Log-in to your Site24x7 account. Sign up here if you don't have one
  • Download and install the latest version of Site24x7 Linux Agent
  • Install the RabbitMQ plugin
  • The agent will execute the RabbitMQ plugin and push the data to the Site24x7 server

Prerequisites:

  • Our plugin uses Management Plugin to fetch the performance metrics. If by default it is not configured in the installation of RabbitMQ agent, please configure it.

RabbitMQ plugin installation:

  • Create a directory with the name "rabbitmq", under Site24x7 Linux Agent plugin directory - /opt/site24x7/monagent/plugins/rabbitmq
  • Download the file "rabbitmq.py" from our GitHub repository and place it under the "rabbitmq" directory
  • Commands to perform the above step:
  • cd /opt/site24x7/monagent/plugins/
    mkdir rabbitmq
    cd rabbitmq
    wget https://raw.githubusercontent.com/site24x7/plugins/master/rabbitmq/rabbitmq.py

RabbitMQ plugin configuration:

  • By default RabbitMQ plugin uses the status url http://127.0.0.1:15672/api/overview to fetch the performance metrics
  • In order to change the configurations, go to plugins directory and edit the required plugin file
    rabbitmq => /opt/site24x7/monagent/plugins/rabbitmq/rabbitmq.py
  • Replace the shebang character "#!" with the appropriate path for Python 3 in your system
  • Eg : #!/usr/local/bin/python3
  • Make your changes in the config section (sample provided below)
  • RABBITMQ_HOST='localhost'
    RABBITMQ_PORT="15672"
    RABBITMQ_API_URI="/api/overview"
    RABBITMQ_NODES_URI="/api/nodes"
    RABBITMQ_USERNAME='guest'
    RABBITMQ_PASSWORD='guest'

Monitoring additional metrics:

  • To monitor additional metrics, edit the "rabbitmq.py" file and add the new metrics that need monitoring
  • Increment the plugin version value in the file "rabbitmq.py" to view the newly added metrics ( For e.g. Change the default plugin version from PLUGIN_VERSION = "1" to "PLUGIN_VERSION = "2")

Related plugins:

  • HAProxy plugin - Monitor performance metrics of your HAProxy databases
  • MongoDB plugin - Monitor performance metrics of your MongoDB databases
  • Supervisord plugin - Analyze performance of your Supervisord server
  • Nagios plugin - Execute thousands of Nagios plugins in Site24x7 without the need of running a Nagios server
  • Out-of-the-box plugins - Monitor your entire app stack with our extensive list of integrations
  • Create custom plugins - Create custom Linux and Windows plugins and monitor custom attributes
Trusted

World's leading companies

Client

Don't have a Site24x7 account? Sign up now!