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 ...
                      • How to enable the prometheus in Podman

                        How to enable prometheus in Podman (Podman-exporter, Node-Exporter) Note: Linux Machine (Ubuntu/RHEL-based) and Podman is already installed. 1. Overview of Monitoring Components Prometheus: Collects and stores metrics from configured targets Podman ...
                      • 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 ...
                      • How to enable the prometheus in kafka

                        How to Configure Kafka Monitoring Using Prometheus Mode Note: This document explains how to configure Apache Kafka monitoring through Prometheus integration in Applications Manager. 1. Overview of Monitoring Components Kafka Broker: Generates JMX ...