Message rates (incoming, delivered/get, ack) from command line

1,136 views
Skip to first unread message

Raul Kaubi

unread,
May 3, 2017, 1:46:25 PM5/3/17
to rabbitmq-users
Hi

Anyone know how can I get this information from command line. At the moment this picture is from management plugin.










I can't find this information from here: https://www.rabbitmq.com/man/rabbitmqctl.1.man.html

rabbitmqctl list_queues does not have this option..

Regards
Raul

Michael Klishin

unread,
May 3, 2017, 1:50:48 PM5/3/17
to rabbitm...@googlegroups.com
`rabbitmqadmin` is a zero dependency CLI tool that ships with the rabbitmq-management plugin
and uses the same HTTP API as the UI.


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Raul Kaubi

unread,
May 3, 2017, 3:01:55 PM5/3/17
to rabbitmq-users
Oh yeah, thanks, I forgot this rabbitmqadmin..

But do anyone happen to know is there a rabbitmqadmin built-in functionality, to list only specific queues from vhost..? (not thinking of grep)

This "rabbitmadmin --help" is not so helpful unfortunately..

At the moment command would be:
rabbitmqadmin -f table -d 3 list -S name queues name messages message_stats.publish_details.rate message_stats.deliver_details.rate message_stats.ack_details.rate

Also, is there a possibility to rename these headers with built-in rabbitmqadmin function..?

By the way, how to get this one working I tried it, but did not seemed to work, probably I put this in the wrong place..
--quiet, -q             suppress status messages [default: True]


Raul


On Wednesday, May 3, 2017 at 8:50:48 PM UTC+3, Michael Klishin wrote:
`rabbitmqadmin` is a zero dependency CLI tool that ships with the rabbitmq-management plugin
and uses the same HTTP API as the UI.

On Wed, May 3, 2017 at 7:46 PM, Raul Kaubi <raul...@gmail.com> wrote:
Hi

Anyone know how can I get this information from command line. At the moment this picture is from management plugin.










I can't find this information from here: https://www.rabbitmq.com/man/rabbitmqctl.1.man.html

rabbitmqctl list_queues does not have this option..

Regards
Raul

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
May 3, 2017, 3:36:19 PM5/3/17
to rabbitm...@googlegroups.com
There is a flag that specifies a vhost, I believe it is -V.
--
Staff Software Engineer, Pivotal/RabbitMQ

Raul Kaubi

unread,
May 3, 2017, 4:00:09 PM5/3/17
to rabbitm...@googlegroups.com
Hi

Yeah flag is for vhost, but I meant can I filter only specific queues from that vhost.
For example, I have 2 queues in vhost "/" with queue names:
queue1
queue2

And I want only data for queue2

Regards
Raul

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Staff Software Engineer, Pivotal/RabbitMQ

--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/SSpekVAOkPo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

Michael Klishin

unread,
May 3, 2017, 5:44:55 PM5/3/17
to rabbitm...@googlegroups.com
From `rabbitmqadmin help`:

--vhost=VHOST, -V VHOST
                        connect to vhost VHOST [default: all vhosts for list,
                        '/' for declare]

-q should come before the positional arguments.

I don't know what you mean by "rename" and "headers". The stats have fixed names
and returned as is from the HTTP API response.

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
May 3, 2017, 5:46:22 PM5/3/17
to rabbitm...@googlegroups.com
There is no way to filter only individual queues with `rabbitmqadmin`.

It is possible to retrieve stats for a specific queue in the API:

Raul Kaubi

unread,
May 4, 2017, 4:34:36 AM5/4/17
to rabbitm...@googlegroups.com
Ok, thanks. I managed to get by using good old grep..:)

Regards
Raul

You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/SSpekVAOkPo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages