Bird
0
0

Which configuration snippet correctly sets Prometheus to scrape RabbitMQ metrics at port 15692?

easy📝 Syntax Q3 of 15
RabbitMQ - Monitoring and Management
Which configuration snippet correctly sets Prometheus to scrape RabbitMQ metrics at port 15692?
A- job_name: 'rabbitmq' static_configs: - targets: ['localhost:15692']
B- job_name: 'rabbitmq' static_configs: - targets: ['localhost:15672']
C- job_name: 'rabbitmq' static_configs: - targets: ['localhost:5672']
D- job_name: 'rabbitmq' static_configs: - targets: ['localhost:9090']
Step-by-Step Solution
Solution:
  1. Step 1: Identify RabbitMQ Prometheus metrics port

    RabbitMQ exposes Prometheus metrics on port 15692 by default.
  2. Step 2: Match configuration to correct port

    Only - job_name: 'rabbitmq' static_configs: - targets: ['localhost:15692'] uses port 15692 correctly in targets.
  3. Final Answer:

    Job scraping localhost:15692 -> Option A
  4. Quick Check:

    Correct scrape port = 15692 [OK]
Quick Trick: Use port 15692 for RabbitMQ Prometheus metrics [OK]
Common Mistakes:
MISTAKES
  • Using management port 15672 instead
  • Using AMQP port 5672
  • Using Prometheus default port 9090

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes