Curl to get Rabbitmq queue size

前端 未结 5 1953
花落未央
花落未央 2021-02-05 09:47

Is there a way to get the size (remaining messages) of a queue in rabbitmq with a simple Curl?

Something like curl -xget http://host:1234/api/queue/test/stats

5条回答
  •  别那么骄傲
    2021-02-05 10:36

    curl -u login:password http://localhost:15672/api/queues | sed 's/,/\n/g' | grep '"messages"\:'

    Rabbitmq v3.3.4 PHP library based on HTTP api.

    REQRequest

提交回复
热议问题