Bird
0
0

Which of the following is the correct Prometheus scrape configuration snippet to monitor RabbitMQ metrics?

easy📝 Configuration Q12 of 15
RabbitMQ - Monitoring and Management
Which of the following is the correct Prometheus scrape configuration snippet to monitor RabbitMQ metrics?
Ascrape_configs: - job_name: 'rabbitmq' static_configs: - targets: ['localhost:15692']
Bscrape_configs: - job_name: 'rabbitmq' static_configs: - targets: ['localhost:5672']
Cscrape_configs: - job_name: 'rabbitmq' static_configs: - targets: ['localhost:15672']
Dscrape_configs: - job_name: 'rabbitmq' static_configs: - targets: ['localhost:9090']
Step-by-Step Solution
Solution:
  1. Step 1: Identify RabbitMQ Prometheus metrics port

    The Prometheus plugin exposes metrics on port 15692 by default.
  2. Step 2: Verify scrape target in Prometheus config

    The target must be localhost:15692 to scrape RabbitMQ metrics correctly.
  3. Final Answer:

    scrape_configs with target localhost:15692 -> Option A
  4. Quick Check:

    Port 15692 for Prometheus metrics = A [OK]
Quick Trick: Use port 15692 for RabbitMQ Prometheus metrics scrape [OK]
Common Mistakes:
MISTAKES
  • Using RabbitMQ AMQP port 5672 instead of metrics port
  • Using RabbitMQ management port 15672 incorrectly
  • Using Prometheus default port 9090 as target

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes