How to scape data of rabbitMQ in prometheus server

How to scape data of rabbitMQ in prometheus server

To enable Prometheus metrics in RabbitMQ, we need to enable the Prometheus plugin and expose the metrics endpoint. Here are the steps.

1️⃣ Enable the Prometheus Plugin in RabbitMQ

Run this command on the RabbitMQ server:

  1. rabbitmq-plugins enable rabbitmq_prometheus


This enables the rabbitmq_prometheus plugin which exposes metrics in Prometheus format.


2️⃣ Verify the Plugin is Enabled

Check installed plugins:

  1. rabbitmq-plugins list


You should see:

  1. [E*] rabbitmq_prometheus



3️⃣ Access the Metrics Endpoint

RabbitMQ exposes metrics at:

  1. http://<rabbitmq-host>:15692/metrics


If enabled correctly, you'll see Prometheus formatted metrics like:

  1. rabbitmq_queue_messages_ready
  2. rabbitmq_queue_messages_unacknowledged
  3. rabbitmq_connections


4️⃣ Configure Prometheus to Scrape RabbitMQ

Edit your Prometheus config (prometheus.yml):

  1. scrape_configs:
  2.   - job_name: 'rabbitmq'
  3.     static_configs:
  4.  - targets: ['localhost:15692']


Then restart Prometheus.

  1. sudo systemctl restart prometheus

Check status:

  1. sudo systemctl status prometheus


                  New to ADSelfService Plus?

                    • Related Articles

                    • JDBC data not populated for tomcat added by Prometheus

                      To configure JDBC metrics in tomcat exporter 1) Open the below file from tomcat installation directory. $CATALINA_BASE/conf/server.xml 2) Add the following configuration under <GlobalNamingResources> tag in the server.xml file. <Resource ...
                    • Monitoring a Clustered RabbitMQ setup in APM

                      For Monitoring RabbitMQ, Applications Manager uses the Management Plugin provided by default RabbitMQ installations to collect performance metrics. The Management plugin provides a series of API endpoints required to monitor the target RabbitMQ ...
                    • APM Insight monitor is UP, but monitor page doesn't show any data

                      Possible Causes The APM Insight monitor status corresponds to the respective agent folder pointed Java Application status i.e., as long as the Application server is running, the monitor status will be UP. 1. No Transactions Recorded: It is possible ...
                    • APM Insight Python Agent & Data Exporter Onboarding Docker Guide (Same Container)

                      Overview This guide explains how to enable APM Insight monitoring for your Python application running in Docker, using the APM Insight Python agent and Data Exporter (In Same Container). 1. Download the Required Components APM Insight Python Agent: ...
                    • Enable Bundled Prometheus Exporter for ClickHouse DB

                      Overview ClickHouse provides a built-in Prometheus exporter that allows monitoring tools like Prometheus to scrape internal metrics directly from the database. This eliminates the need for any external exporter in modern setups. In the default ...