[rabbitmq-discuss] Monitoring Rabbit MQ deadletter queue and queue counts / rates

Lance Lyons Lance_Lyons at onlifehealth.com
Thu Feb 13 15:17:49 GMT 2014


Thanks Michael,

Is there anything that describes the json that is returned for each api call.   For instance.  When I look at a specific queue 

http://machinename.domain.local:15672/api/queues/%2f/ohq.member.biometrics


 I get the following.   Im not sure how the json return is formatted.   


{"memory":14456,"message_stats":{"ack":8628,"ack_details":{"rate":0.0},"deliver":8628,"deliver_details":{"rate":0.2},"deliver_get":8628,"deliver_get_details":{"rate":0.2},"publish":8628,"publish_details":{"rate":0.0}},"messages":0,"messages_details":{"rate":0.2},"messages_ready":0,"messages_ready_details":{"rate":0.0},"messages_unacknowledged":0,"messages_unacknowledged_details":{"rate":0.2},"idle_since":"2014-02-13 9:08:36","policy":"","exclusive_consumer_tag":"","consumers":2,"backing_queue_status":{"q1":0,"q2":0,"delta":["delta",0,0,0],"q3":0,"q4":0,"len":0,"pending_acks":0,"target_ram_count":"infinity","ram_msg_count":0,"ram_ack_count":0,"next_seq_id":8628,"persistent_count":0,"avg_ingress_rate":0.040558057784930594,"avg_egress_rate":0.040558057784930594,"avg_ack_ingress_rate":0.040558057784930594,"avg_ack_egress_rate":0.0},"status":"running","incoming":[{"stats":{"publish":8628,"publish_details":{"rate":0.0}},"exchange":{"name":"ohx.notification","vhost":"/"}}],"deliveries":[{"stats":{"deliver_get":4342,"deliver_get_details":{"rate":0.0},"deliver":4342,"deliver_details":{"rate":0.0},"ack":4342,"ack_details":{"rate":0.0}},"channel_details":{"name":"11.1.4.69:60042 -> 11.1.4.64:5672 (2)","number":2,"connection_name":"11.1.4.69:60042 -> 11.1.4.64:5672","peer_port":60042,"peer_host":"11.1.4.69"}},{"stats":{"deliver_get":4286,"deliver_get_details":{"rate":0.2},"deliver":4286,"deliver_details":{"rate":0.2},"ack":4286,"ack_details":{"rate":0.0}},"channel_details":{"name":"11.1.4.68:57698 -> 11.1.4.64:5672 (2)","number":2,"connection_name":"11.1.4.68:57698 -> 11.1.4.64:5672","peer_port":57698,"peer_host":"11.1.4.68"}}],"consumer_details":[{"channel_details":{"name":"11.1.4.68:57698 -> 11.1.4.64:5672 (2)","number":2,"connection_name":"11.1.4.68:57698 -> 11.1.4.64:5672","peer_port":57698,"peer_host":"11.1.4.68"},"queue":{"name":"ohq.member.biometrics","vhost":"/"},"consumer_tag":"ohq.member.biometrics-1391823274000-472244183023","exclusive":false,"ack_required":true},{"channel_details":{"name":"11.1.4.69:60042 -> 11.1.4.64:5672 (2)","number":2,"connection_name":"11.1.4.69:60042 -> 11.1.4.64:5672","peer_port":60042,"peer_host":"11.1.4.69"},"queue":{"name":"ohq.member.biometrics","vhost":"/"},"consumer_tag":"ohq.member.biometrics-1391823324000-377170445325","exclusive":false,"ack_required":true}],"name":"ohq.member.biometrics","vhost":"/","durable":true,"auto_delete":false,"arguments":{"x-dead-letter-exchange":"ohx.deadletter","x-dead-letter-routing-key":"member.biometrics"},"node":"rabbit at Machine01"}

-----Original Message-----
From: rabbitmq-discuss [mailto:rabbitmq-discuss-bounces at lists.rabbitmq.com] On Behalf Of Michael Klishin
Sent: Wednesday, February 12, 2014 10:35 PM
To: Discussions about RabbitMQ
Cc: talktomelance at gmail.com
Subject: Re: [rabbitmq-discuss] Monitoring Rabbit MQ deadletter queue and queue counts / rates


On 13 Feb 2014, at 02:03, talktomelance at gmail.com wrote:

> We would also like to check for messages in a deadletter queue.  
> 
> http://machinename.domain.local:15672/api/queues?columns=name,messages    gives me the queues and messages and I can see the deadletter queues and the message count in each.   I would have to parse this to find which queue has a deadletter queue associated with it.
> 
>  I have seen the API but not sure how to configure the query string to get counts and rates of all queues and the specific deadletter info.

In RabbitMQ, deadlettered messages are published to a deadletter exchange:
http://www.rabbitmq.com/dlx.html

You can monitor ingress rate for an exchange:
> http://machinename.domain.local:15672/api/exchanges

or

> http://machinename.domain.local:15672/api/exchanges/[name]

See http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_2_3/priv/www/api/index.html

MK

Software Engineer, Pivotal/RabbitMQ


_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list