This is the 27th day of my participation in the November Gwen Challenge. Check out the event details: The last Gwen Challenge 2021

Prometheus sends a probe to rabbitMQ, obtains rabBMQ information from the probe, and outputs rabBMQ information through the interface. Here is how to monitor RabbitMQ.

1. Download the exporter

For your convenience, here is a list of download addresses. If you are not particularly satisfied with the template, you can also go to the official website to download it. Rabbitmq_mainlink: pan.baidu.com/s/1It9m5qA-… Extraction code: 9M28

The rabbitmq – monitoring_rev4 (visual interface template) link: pan.baidu.com/s/19ZuCfJNy… Extraction code: PMVX

2. Install rabbitmq_exporter

1. Unpack the

tar -zxvf rabbitmq_exporter-1.0. 0-RC7.linux-amd64.tar
Copy the code

2. Start

Enter the password of RABBIT_USER=root RABBIT_PASSWORD=root

cd usr/local/rabbitmq_exporter-1.0. 0-RC7.linux-amd64
RABBIT_USER=root RABBIT_PASSWORD=root OUTPUT_FORMAT=JSON PUBLISH_PORT=9099 RABBIT_URL=http://localhost:5672 nohup ./rabbitmq_exporter &
Copy the code

3. Verify

The inputhttp://ip:9099/metrics, if the following figure is displayed, it indicates success. (Port number configured above)

3. The configuration of Prometheus

Add the following configuration files as usual

  - job_name: 'rabbitMq'
    static_configs:
      - targets: ['ip:9099']
        labels:
          instance: rabbitMq
Copy the code

4. Configuration grafana

Enter grafana visual page address: IP :3000

1. Configure the data source (Prometheus ADDRESS: IP :9090)

Fill in your Prometheus address, port 9090, and click Save to be prompted if you fail.

2. Visualize the interface template

Select the data source configured above, which is the Prometheus option.

3. Verify

The above screen configuration is complete!