[
https://issues.apache.org/jira/browse/ARTEMIS-1384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16151621#comment-16151621
]
ASF GitHub Bot commented on ARTEMIS-1384:
-----------------------------------------
GitHub user pgfox opened a pull request:
https://github.com/apache/activemq-artemis/pull/1506
ARTEMIS-1384 adding CLI command (qstat) to display basic queue stats
simple CLI command that displays minimal/basic stats for a queue by using
the ActiveMQServerControl.listQueues(). An example of the output below
```
$ ./artemis qstat --user admin --password admin --queueName Test
|QUEUE NAME |ADDRESS NAME |CONSUMERS |MESSAGES
|ADDED |DELIVERING |ACKED |
|Test1 |Test1 |0 |0
|1000 |0 |1000 |
|Test12 |Test12 |0 |1000
|1000 |0 |0 |
|Test124 |Test124 |0 |1000
|1000 |0 |0 |
```
You can also search for an exact match (or display info for all queues if
no queueName specified.
```
$ ./artemis qstat --user admin --password admin --queueName Test1
--exactMatch
|QUEUE NAME |ADDRESS NAME |CONSUMERS |MESSAGES
|ADDED |DELIVERING |ACKED |
|Test1 |Test1 |0 |0
|1000 |0 |1000 |
```
I wanted to keep the info displayed relatively small as it is just intended
as a "quick check" - these are the columns I use the most, in the corresponding
activemq 5.x dstat command.
thanks
Pat
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/pgfox/activemq-artemis queue_stats
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/1506.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1506
----
commit 38a1543b91fa6437cdcfb5c94316c81d3831eb5a
Author: Pat Fox <[email protected]>
Date: 2017-09-01T23:29:04Z
ARTEMIS-1384 adding CLI command (qstat) to display basic queue stats
----
> add a CLI command to display basic queue stats
> -----------------------------------------------
>
> Key: ARTEMIS-1384
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1384
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Components: Broker
> Affects Versions: 2.3.0
> Reporter: Pat Fox
> Priority: Minor
>
> In activemq 5.x there is a command line tool (called dstat) that listed some
> basic stats for queues/topics on the broker (current message count, current
> number of consumers, number of enqueued messages, number of dequeued
> messages).
> This is very useful for troubleshooting as a quick way to check basic
> destination stats or capture information if other management tools are not
> available.
> It would be good to have a similar command in the Artemis CLI that listed
> minimal set of stats for each queue.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)