rabbitmq_queue_messages_ready. What output do you expect if the queue task_queue has 5 ready messages?curl http://localhost:9419/metrics | grep rabbitmq_queue_messages_readyThe Prometheus RabbitMQ exporter exposes metrics with labels including queue and vhost. The value shows the number of ready messages. Option C correctly shows 5 ready messages for task_queue in the default virtual host.
http://localhost:9090?Grafana data source for Prometheus must have type: prometheus and the correct URL. Option A uses the right URL and sets it as default.
First, enable the RabbitMQ exporter to expose metrics. Then configure Prometheus to scrape those metrics. Next, add Prometheus as a data source in Grafana. Finally, create dashboards to visualize the data.
If Prometheus cannot scrape the RabbitMQ metrics endpoint, no data will be available for Grafana. Other options either contradict the problem or are less likely.
Restricting access to the metrics endpoint using network policies or firewalls is a best practice to protect sensitive data. Public exposure or unencrypted credentials are security risks.