[rabbitmq-discuss] Meaning of message_stats contents

John Tuley jtuley at pivotallabs.com
Tue May 20 17:51:18 BST 2014


Hello,

We're polling the rabbitmq management REST API for stats and would like 
some help interpreting the response. (If the responses are documented 
somewhere, a pointer to that will suffice, but we weren't able to find said 
documentation.)

The response looks like

{ "node": "rabbit at node2", "arguments": {}, "auto_delete": false, "durable": 
true, "vhost": "/", "name": "NAME", "consumer_details": [ { "arguments": 
{}, "ack_required": false, "exclusive": false, "consumer_tag": "scooper", 
"queue": { "vhost": "/", "name": "dropsonde" }, "channel_details": { 
"peer_host": "IP ADDRESS", "peer_port": 33421, "connection_name": "NAME", 
"number": 1, "name": "NAME" } } ], "deliveries": [ { "channel_details": { 
"peer_host": "IP", "peer_port": 33421, "connection_name": "NAME", "number": 
1, "name": "NAME" }, "stats": { "deliver_get_details": { "rate": 1.2 }, 
"deliver_get": 39945, "deliver_no_ack_details": { "rate": 1.2 }, 
"deliver_no_ack": 39945 } } ], "policy": "test-queue", "messages_unacknowledged_details": 
{ "rate": 0 }, "messages_unacknowledged": 0, "messages_ready_details": { 
"rate": 0 }, "messages_ready": 0, "messages_details": { "rate": 0 }, 
"messages": 0, "message_stats": { "publish_details": { "rate": 1 }, 
"publish": 39946, "deliver_no_ack_details": { "rate": 1.2 }, 
"deliver_no_ack": 39945, "deliver_get_details": { "rate": 1.2 }, 
"deliver_get": 39945 }, "exclusive_consumer_tag": "", "consumers": 1, 
"memory": 109928, "slave_nodes": [ "rabbit at node0", "rabbit at node1" ], 
"synchronised_slave_nodes": [ "rabbit at node0", "rabbit at node1" ], 
"backing_queue_status": { "mirror_senders": 0, "mirror_seen": 0, 
"target_ram_count": "infinity", "pending_acks": 0, "len": 0, "q4": 0, "q3": 
0, "delta": [ "delta", "undefined", 0, "undefined" ], "q2": 0, "q1": 0, 
"ram_msg_count": 0, "ram_ack_count": 0, "next_seq_id": 0, 
"persistent_count": 0, "avg_ingress_rate": 0, "avg_egress_rate": 0, 
"avg_ack_ingress_rate": 0, "avg_ack_egress_rate": 0 }, "status": "running", 
"incoming": [ { "exchange": { "vhost": "/", "name": "" }, "stats": { 
"publish_details": { "rate": 1 }, "publish": 39946 } } ] }

Specifically, we're wondering about message_stats and the difference 
between deliver_get and deliver_no_ack. Our use case is a tool that 
periodically reports the number of messages published to our queue as well 
as the number of messages delivered (i.e. reporting flow through the 
queue). (Or maybe message_stats is the wrong place to look for that 
information?)

Thanks for the help!
– John Tuley and John Foley
Cloud Foundry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140520/7661748e/attachment.html>


More information about the rabbitmq-discuss mailing list