0

I would like to queue the status of my RabbitMQ messages so that I can log them and alert them via a logging tool.

Unfortunately, this curl does not return the number of messages, as can be read in numerous documentations:

curl -s -u user:password -X GET http://localhost:15672/api/queues/<VHOST>/<QEUE> | jq '.'

{
  "garbage_collection": {
    "max_heap_size": ,
    "min_bin_vheap_size": ,
    "min_heap_size": ,
    "fullsweep_after": ,
    "minor_gcs": 
  },
  "consumer_details": [],
  "arguments": {},
  "auto_delete": ,
  "deliveries": [],
  "durable": ,
  "exclusive": ,
  "incoming": [],
  "name": "",
  "node": "",
  "slave_nodes": [
    ""
  ],
  "synchronised_slave_nodes": [
    ""
  ],
  "type": "",
  "vhost": ""
}

I only get these elements back in response. What do I have to do to get the number per queue?

However, if I list the queues directly on the RabbitMQ server with rabbitmqctl, I get the correct number of queued messages.

Thank you very much

1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Jan 16 at 20:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.