Monitoring and collecting data from RabbitMQ

RabbitMQ is a messaging broker - an intermediary for messaging. It gives your applications a common platform to send and receive messages.

More information on: https://www.rabbitmq.com/

How it works

The plugin gathers statistics (memory usage, queue length, etc) for RabbitMQ by connecting to the RabbitMQ management plugin. This plugin is not installed by default, see next steps.

The minimal supported version of RabbitMQ is 2.7.

Installation

The plugin needs to be installed together with a CoScale agent, instructions on how to install the CoScale agent can be found here. If you want to monitor RabbitMQ inside Docker containers using CoScale, check out the instructions here.

Configuration

Enable RabbitMQ management

Enabled the RabbitMQ management plugin by executing the following command line:

rabbitmq-plugins enable rabbitmq_management

Active checks

This plugin can be configured to insert and retrieve a message into your RabbitMQ. This active monitoring allows us to calculate the uptime of the service and the response time of the insert and retrieval of the message.

An existing queue should be provided. This queue should be dedicated for this check, since we will insert and retrieve messages from the queue.

Metrics

RabbitMQ

Name Unit Dimensions
Count of RabbitMQ messages published in the queue msg Queue
Number of RabbitMQ processes procs Node
Processors used by RabbitMQ cores Node
RabbitMQ active check latency s  
RabbitMQ active check uptime %  
RabbitMQ channels chans  
RabbitMQ connections conn  
RabbitMQ consumers cons  
RabbitMQ consumers in the queue cons Queue
RabbitMQ disk free limit b Node
RabbitMQ disk free rate bytes/s Node
RabbitMQ disk free space b Node
RabbitMQ exchanges queues  
RabbitMQ file descriptors available fd Node
RabbitMQ memory limit b Node
RabbitMQ memory used b Node
RabbitMQ memory used in the queue b Queue
RabbitMQ message bytes ram in the queue b Queue
RabbitMQ messages count msg  
RabbitMQ messages count in the queue msg Queue
RabbitMQ messages rate fluctuation msg/s  
RabbitMQ messages rate fluctuation in the queue msg/s Queue
RabbitMQ messages ready rate msg/s  
RabbitMQ messages ready rate in the queue msg/s Queue
RabbitMQ net_ticktime s Node
RabbitMQ persistent messages in the queue msg Queue
RabbitMQ processes in queue procs Node
RabbitMQ processes used procs Node
RabbitMQ queue messages size in the queue b Queue
RabbitMQ queues queues  
RabbitMQ sockets used socks Node
RabbitMQ unacknowledged messages msg  
RabbitMQ unacknowledged messages in the queue msg Queue
RabbitMQ uptime s Node
RabbitMQ used file descriptors fd Node
RabbitMQ used file descriptors rate fd/s Node
Rate of file descriptors used as RabbitMQ sockets fd/s Node
Rate of RabbitMQ messages published msg  
Rate of RabbitMQ messages published in the queue msg/s Queue
Rate of used memory by RabbitMQ b Node
Ready RabbitMQ messages msg  
Ready RabbitMQ messages in the queue msg Queue
Size of persistent RabbitMQ messages in the queue b Queue
Size of ready RabbitMQ messages in the queue b Queue
Size of unacknowledged RabbitMQ messages in the queue b Queue
The rate of RabbitMQ processes in use procs Node
Total number of RabbitMQ sockets socks Node
Unacknowledged RabbitMQ messages rate msg/s  
Unacknowledged RabbitMQ messages rate in the queue msg/s Queue

Events

Name Description Attributes
RABBITMQ service state watcher State watcher status