0
0
RabbitMQdevops~20 mins

Prometheus and Grafana integration in RabbitMQ - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Prometheus and Grafana Integration Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Prometheus RabbitMQ Exporter Metrics Output
You run the RabbitMQ Prometheus exporter and query the metric rabbitmq_queue_messages_ready. What output do you expect if the queue task_queue has 5 ready messages?
RabbitMQ
curl http://localhost:9419/metrics | grep rabbitmq_queue_messages_ready
Arabbitmq_queue_messages_ready{queue="task_queue",vhost="/"} 0
Brabbitmq_queue_messages_ready{queue="task_queue"} 0
Crabbitmq_queue_messages_ready{queue="task_queue",vhost="/"} 5
Drabbitmq_queue_messages_ready 5
Attempts:
2 left
💡 Hint
Look for the metric with the correct labels showing the queue name and virtual host.
Configuration
intermediate
2:00remaining
Grafana Data Source Setup for Prometheus
Which configuration snippet correctly sets up a Prometheus data source in Grafana to scrape metrics from http://localhost:9090?
A
apiVersion: 1
datasources:
- name: Prometheus
  type: prometheus
  access: proxy
  url: http://localhost:9090
  isDefault: true
B
apiVersion: 1
datasources:
- name: Prometheus
  type: prometheus
  access: direct
  url: http://localhost:9419
  isDefault: false
C
apiVersion: 1
datasources:
- name: Prometheus
  type: influxdb
  access: proxy
  url: http://localhost:9090
  isDefault: true
D
apiVersion: 1
datasources:
- name: RabbitMQ
  type: prometheus
  access: proxy
  url: http://localhost:9090
  isDefault: true
Attempts:
2 left
💡 Hint
Check the data source type and URL for Prometheus.
🔀 Workflow
advanced
3:00remaining
Order of Steps to Integrate RabbitMQ Metrics into Grafana
What is the correct order of steps to integrate RabbitMQ metrics into Grafana using Prometheus?
A2,1,3,4
B1,2,3,4
C1,3,2,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about enabling metrics first, then scraping, then visualization setup.
Troubleshoot
advanced
2:30remaining
Troubleshooting Missing RabbitMQ Metrics in Grafana
You see no RabbitMQ metrics in Grafana dashboards after setup. Which is the most likely cause?
APrometheus is not scraping the RabbitMQ metrics endpoint correctly
BGrafana dashboards are missing the Prometheus data source
CRabbitMQ server is down but Prometheus is scraping metrics
DRabbitMQ metrics are visible in Prometheus but Grafana shows no data due to dashboard refresh rate
Attempts:
2 left
💡 Hint
Check if Prometheus can access the metrics endpoint first.
Best Practice
expert
3:00remaining
Best Practice for Securing Prometheus Metrics Endpoint for RabbitMQ
Which option is the best practice to secure the RabbitMQ Prometheus metrics endpoint in a production environment?
AExpose the metrics endpoint publicly without authentication for easy access
BEmbed RabbitMQ credentials in Prometheus scrape config without encryption
CDisable TLS and use plain HTTP for metrics to reduce complexity
DUse network policies or firewall rules to restrict access to the metrics endpoint
Attempts:
2 left
💡 Hint
Think about limiting who can see sensitive metrics data.