[ 
https://issues.apache.org/jira/browse/ARTEMIS-3671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487289#comment-17487289
 ] 

Justin Bertram commented on ARTEMIS-3671:
-----------------------------------------

I'm introducing a new command-line parameter: {{maxColumnsSize}} (default is 
{{25}}). Default output of the example outlined in the description will be:
{noformat}
|NAME                     |ADDRESS                  
|CONSUMER_COUNT|MESSAGE_COUNT|MESSAGES_ADDED|DELIVERING_COUNT|MESSAGES_ACKED|SCHEDULED_COUNT|ROUTING_TYPE|
|0123456789012345678901...|0123456789012345678901...|0             |0           
 |0             |0               |0             |0              |ANYCAST     |
|0123456789012345678901...|0123456789012345678901...|0             |0           
 |0             |0               |0             |0              |ANYCAST     |
|0123456789012345678901...|0123456789012345678901...|0             |0           
 |0             |0               |0             |0              |ANYCAST     |
|DLQ                      |DLQ                      |0             |0           
 |0             |0               |0             |0              |ANYCAST     |
|ExpiryQueue              |ExpiryQueue              |0             |0           
 |0             |0               |0             |0              |ANYCAST     |
|activemq.management.12...|activemq.management.12...|1             |0           
 |0             |0               |0             |0              |MULTICAST   
|{noformat}
Changing the {{maxColumnSize}} to {{50}}:
{noformat}
$ ./artemis queue stat --maxColumnSize 50
Connection brokerURL = tcp://localhost:61616
|NAME                                              |ADDRESS                     
                      
|CONSUMER_COUNT|MESSAGE_COUNT|MESSAGES_ADDED|DELIVERING_COUNT|MESSAGES_ACKED|SCHEDULED_COUNT|ROUTING_TYPE|
|012345678901234567890123456789a                   
|012345678901234567890123456789a                   |0             |0            
|0             |0               |0             |0              |ANYCAST     |
|012345678901234567890123456789b                   
|012345678901234567890123456789b                   |0             |0            
|0             |0               |0             |0              |ANYCAST     |
|012345678901234567890123456789c                   
|012345678901234567890123456789c                   |0             |0            
|0             |0               |0             |0              |ANYCAST     |
|DLQ                                               |DLQ                         
                      |0             |0            |0             |0            
   |0             |0              |ANYCAST     |
|ExpiryQueue                                       |ExpiryQueue                 
                      |0             |0            |0             |0            
   |0             |0              |ANYCAST     |
|activemq.management.c133266a-0c7a-494a-9d89-531...|activemq.management.c133266a-0c7a-494a-9d89-531...|1
             |0            |0             |0               |0             |0    
          |MULTICAST   |{noformat}
And then using {{-1}}:
{noformat}
$ ./artemis queue stat --maxColumnSize -1
Connection brokerURL = tcp://localhost:61616
|NAME                                                    |ADDRESS               
                                  
|CONSUMER_COUNT|MESSAGE_COUNT|MESSAGES_ADDED|DELIVERING_COUNT|MESSAGES_ACKED|SCHEDULED_COUNT|ROUTING_TYPE|
|012345678901234567890123456789a                         
|012345678901234567890123456789a                         |0             |0      
      |0             |0               |0             |0              |ANYCAST   
  |
|012345678901234567890123456789b                         
|012345678901234567890123456789b                         |0             |0      
      |0             |0               |0             |0              |ANYCAST   
  |
|012345678901234567890123456789c                         
|012345678901234567890123456789c                         |0             |0      
      |0             |0               |0             |0              |ANYCAST   
  |
|DLQ                                                     |DLQ                   
                                  |0             |0            |0             
|0               |0             |0              |ANYCAST     |
|ExpiryQueue                                             |ExpiryQueue           
                                  |0             |0            |0             
|0               |0             |0              |ANYCAST     |
|activemq.management.8ad06050-f826-4269-b226-91b3368e850e|activemq.management.8ad06050-f826-4269-b226-91b3368e850e|1
             |0            |0             |0               |0             |0    
          |MULTICAST   |{noformat}

> Fix readability of queue stat output
> ------------------------------------
>
>                 Key: ARTEMIS-3671
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3671
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>
> Say you create a few queues using the following commands:
> {noformat}
> $ ./artemis queue create --name 012345678901234567890123456789a --address 
> 012345678901234567890123456789a --anycast --preserve-on-no-consumers 
> --durable --auto-create-address
> $ ./artemis queue create --name 012345678901234567890123456789b --address 
> 012345678901234567890123456789b --anycast --preserve-on-no-consumers 
> --durable --auto-create-address
> $ ./artemis queue create --name 012345678901234567890123456789c --address 
> 012345678901234567890123456789c --anycast --preserve-on-no-consumers 
> --durable --auto-create-address{noformat}
> Then run this command:
> {noformat}
> $ ./artemis queue stat{noformat}
> This is what the output would be like:
> {noformat}
> |NAME                     |ADDRESS                  |CONSUMER_COUNT 
> |MESSAGE_COUNT |MESSAGES_ADDED |DELIVERING_COUNT |MESSAGES_ACKED 
> |SCHEDULED_COUNT |ROUTING_TYPE |
> |012345678901234567890123456789a|012345678901234567890123456789a|0            
>   |0             |0              |0                |0              |0         
>       |ANYCAST      |
> |012345678901234567890123456789b|012345678901234567890123456789b|0            
>   |0             |0              |0                |0              |0         
>       |ANYCAST      |
> |012345678901234567890123456789c|012345678901234567890123456789c|0            
>   |0             |0              |0                |0              |0         
>       |ANYCAST      |
> |DLQ                      |DLQ                      |0              |0        
>      |0              |0                |0              |0               
> |ANYCAST      |
> |ExpiryQueue              |ExpiryQueue              |0              |0        
>      |0              |0                |0              |0               
> |ANYCAST      |
> |activemq.management.d88b1e8e-b33b-4419-bda6-611a54a6c111|activemq.management.d88b1e8e-b33b-4419-bda6-611a54a6c111|1
>               |0             |0              |0                |0             
>  |0               |MULTICAST    |{noformat}
> The output is a mess. It's hard to line up the columns to know what's what.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to