Monitor RabbitMQ using Last9
Send RabbitMQ metrics to Last9
This document lists step-by-step instructions for setting up monitoring for RabbitMQ using Last9.
Prerequisites
Create a Last9 cluster by following Getting Started.
Keep the following information handy after creating the cluster:
$levitate_read_url
- Last9’s Read endpoint$levitate_username
- Cluster ID$levitate_password
- Read token created for the cluster
Ensure RabbitMQ is installed and running on each VM. You should have root or administrative access.
Ensure that rabbitmq_prometheus plugin is configured as per its documentation.
Configure Prometheus Agent to Scrape Metrics
Architecture
Setting up Prometheus Agent
Install Prometheus Agent on a central server that can access all VMs running RabbitMQ. This script can be run on the server:
Configure Scrape Targets
Use either ec2_sd_config
or file_sd_config
to configure scrape targets. The example uses file_sd_config
for simplicity.
Create a file targets.json
and add the following:
Ensure that the targets are the Private IPs of the RabbitMQ cluster or instances.
Configure Last9 Remote Write Credentials into Prometheus Agent
Add the following remote_write configuration to the prometheus.yml file:
Replace remote_write_*
template variables with your Last9 Credentials that can be obtained by following this documentation
Restart Prometheus Agent
Restart Prometheus Agent to apply changes:
Verification
- Check Prometheus Agent’
/targets
and/graph
web interfaces to ensure it’s scraping the RabbitMQ metrics - Verify that metrics are being received in the remote storage
This script-driven setup automates the deployment and configuration of RabbitMQ monitoring using Prometheus Agent.
Dashboard
Download the latest dashboard from here to visualize the metrics.
Troubleshooting
Please get in touch with us on Discord or Email if you have any questions.