What is Prometheus used for in monitoring RabbitMQ?
Prometheus collects and stores metrics from RabbitMQ, such as message rates and queue lengths, to help monitor its performance and health.
Click to reveal answer
beginner
What role does Grafana play when integrated with Prometheus for RabbitMQ?
Grafana visualizes the metrics collected by Prometheus, creating dashboards that show RabbitMQ's status and trends in an easy-to-understand way.
Click to reveal answer
intermediate
How does Prometheus get metrics from RabbitMQ?
Prometheus scrapes metrics from RabbitMQ's Prometheus plugin endpoint, which exposes RabbitMQ metrics in a format Prometheus understands.
Click to reveal answer
beginner
What is a common first step to enable Prometheus monitoring on RabbitMQ?
Enable the RabbitMQ Prometheus plugin by running the command: rabbitmq-plugins enable rabbitmq_prometheus.
Click to reveal answer
beginner
Why is it useful to combine Prometheus and Grafana for RabbitMQ monitoring?
Prometheus collects detailed metrics, and Grafana turns those metrics into visual dashboards, making it easier to spot issues and understand RabbitMQ's behavior over time.
Click to reveal answer
Which RabbitMQ plugin must be enabled to expose metrics to Prometheus?
Arabbitmq_management
Brabbitmq_prometheus
Crabbitmq_stomp
Drabbitmq_federation
✗ Incorrect
The rabbitmq_prometheus plugin exposes RabbitMQ metrics in a format Prometheus can scrape.
What does Grafana primarily do with Prometheus data?
ASends alerts directly to RabbitMQ
BCollects metrics from RabbitMQ
CStores metrics long-term
DVisualizes metrics in dashboards
✗ Incorrect
Grafana creates visual dashboards from the metrics Prometheus collects.
How does Prometheus get RabbitMQ metrics?
ABy pushing metrics to RabbitMQ
BBy reading RabbitMQ logs
CBy scraping the metrics endpoint exposed by RabbitMQ
DBy connecting to RabbitMQ's database
✗ Incorrect
Prometheus scrapes metrics from the HTTP endpoint exposed by the rabbitmq_prometheus plugin.
Which command enables the Prometheus plugin in RabbitMQ?
Arabbitmq-plugins enable rabbitmq_prometheus
Brabbitmqctl start_prometheus
Crabbitmq-server --enable-prometheus
Drabbitmq-manage enable prometheus
✗ Incorrect
The correct command to enable the Prometheus plugin is 'rabbitmq-plugins enable rabbitmq_prometheus'.
What kind of data does Prometheus collect from RabbitMQ?
AMetrics like message rates and queue sizes
BUser passwords
CRabbitMQ configuration files
DRabbitMQ source code
✗ Incorrect
Prometheus collects performance metrics such as message rates and queue sizes from RabbitMQ.
Explain the steps to integrate Prometheus and Grafana for monitoring RabbitMQ.
Think about enabling plugins, configuring data collection, and visualization.
You got /4 concepts.
Describe why monitoring RabbitMQ with Prometheus and Grafana is helpful for system reliability.
Consider how monitoring helps prevent problems.
You got /4 concepts.
Practice
(1/5)
1. What is the first step to enable monitoring of RabbitMQ metrics using Prometheus?
easy
A. Configure Prometheus scrape interval
B. Enable the RabbitMQ Prometheus plugin
C. Install Grafana dashboard
D. Restart the RabbitMQ server
Solution
Step 1: Enable RabbitMQ Prometheus plugin
This plugin exposes RabbitMQ metrics in a format Prometheus can scrape.
Step 2: Confirm plugin activation
Use rabbitmq-plugins enable rabbitmq_prometheus to activate it.
Final Answer:
Enable the RabbitMQ Prometheus plugin -> Option B
Quick Check:
Enable plugin = C [OK]
Hint: Start by enabling the Prometheus plugin in RabbitMQ [OK]
Common Mistakes:
Trying to configure Prometheus before enabling the plugin
Assuming Grafana setup is the first step
Restarting RabbitMQ without enabling the plugin
2. Which of the following is the correct Prometheus scrape configuration snippet to monitor RabbitMQ metrics?
easy
A. scrape_configs:
- job_name: 'rabbitmq'
static_configs:
- targets: ['localhost:15692']
B. scrape_configs:
- job_name: 'rabbitmq'
static_configs:
- targets: ['localhost:5672']
C. scrape_configs:
- job_name: 'rabbitmq'
static_configs:
- targets: ['localhost:15672']
D. scrape_configs:
- job_name: 'rabbitmq'
static_configs:
- targets: ['localhost:9090']
Solution
Step 1: Identify RabbitMQ Prometheus metrics port
The Prometheus plugin exposes metrics on port 15692 by default.
Step 2: Verify scrape target in Prometheus config
The target must be localhost:15692 to scrape RabbitMQ metrics correctly.
Final Answer:
scrape_configs with target localhost:15692 -> Option A
Quick Check:
Port 15692 for Prometheus metrics = A [OK]
Hint: Use port 15692 for RabbitMQ Prometheus metrics scrape [OK]
Common Mistakes:
Using RabbitMQ AMQP port 5672 instead of metrics port
Using RabbitMQ management port 15672 incorrectly
Using Prometheus default port 9090 as target
3. Given this Prometheus scrape config snippet, what will be the result when Prometheus scrapes RabbitMQ metrics?