[Questions] how to get rabbitmq metrics queue wise? #12900
-
Community Support Policy
RabbitMQ version used3.13.7 or older Erlang version used26.0.x Operating system (distribution) usedubuntu How is RabbitMQ deployed?Community Docker image rabbitmq-diagnostics status outputSee https://www.rabbitmq.com/docs/cli to learn how to use rabbitmq-diagnostics
Logs from node 1 (with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 2 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 3 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
rabbitmq.confSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find rabbitmq.conf file location
Steps to deploy RabbitMQ clustercurrently i am working on my local machine. so no cluster. Steps to reproduce the behavior in question
advanced.configSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find advanced.config file location
Application code# PASTE CODE HERE, BETWEEN BACKTICKS Kubernetes deployment file# Relevant parts of K8S deployment that demonstrate how RabbitMQ is deployed
# PASTE YAML HERE, BETWEEN BACKTICKS What problem are you trying to solve?Hi all, RabbitMQ 3.9.13 I want rabbitmq metrics queue wise. I tried using rabbitmq promethues plugin, which gives me metrics for example "rabbitmq_queue_messages_unacked", but it is not queue wise. Let me know if you need more details. I want this to create an alerts if rabbitmq_queue_messages_unacked messages goes above some specific thresholds. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi First of all please upgrade RabbitMQ from the very old and officially not supported 3.9. At least since version 3.10 RabbitMQ has a prometheus plugin bundled. Check out the documentation of the |
Beta Was this translation helpful? Give feedback.
-
Absolutely NOT to do: |
Beta Was this translation helpful? Give feedback.
GET /api/queues/{vhost}/{name}
(this is from memory, see HTTP API docs at/api
on any node with the management pluginAbsolutely NOT to do:
GET /api/queues
to then get one metric of one queue. That will render 70 metrics per queue, so, 70K rows for 1000 queues.