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 ...
                      • 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 ...
                      • How to enable the prometheus mode in Couchbase 7.6 Monitor

                        Couchbase 7.6 - Prometheus Monitoring Setup This guide explains how to enable and configure Prometheus monitoring for Couchbase Server 7.6. Note: From Couchbase 7.0 has built-in Prometheus support. No external exporter is required. STEP 1 – Verify ...