Product SiteDocumentation Site

2.2.3. Using qpid-queue-stats

  1. View the full list of commands by running the qpid-queue-stats --help command from the shell prompt:
    $ qpid-queue-stats --help
    usage: qpid-queue-stats [options]
    
    options:
    -h, --help         		show this help message and exit
    -a BROKER_ADDRESS, 		broker-addr is in the form:  [username/password@]
    ...[output truncated]...
    
  2. View the statistics for all queues in the local broker by using the qpid-queue-stats alone:
    $ qpid-queue-stats
    Queue Name				Sec	Depth	Enq Rate    Deq Rate
    =============================================================================
    mgmt-localhost.localdomain.12531       10.00	    3	    1.40	 1.20
    mgmt-localhost.localdomain.12531       10.00	    3	    0.50	 0.50
    mgmt-localhost.localdomain.12531       10.00	    5	    0.70	 0.50
    mgmt-localhost.localdomain.12531       10.00	    3	    1.50	 1.70
    mgmt-localhost.localdomain.12531       10.00	    2	    0.50	 0.60
    mgmt-localhost.localdomain.12531       10.00	    4	    0.60	 0.40
    message_queue			       10.00	   11 	    0.37	 0.00
    mgmt-localhost.localdomain.12531       10.00	    2	    1.10	 1.30
    message_queue			       10.00	    0	    0.00	 1.10
    
  3. To view the statistic for a particular broker, use the qpid-view-stats command and specify the broker. Brokers can be specified in a number of different ways. If the broker requires authentication, specify the username and password separated by a / character and followed by the @ character. The broker itself can be specified by either hostname or IP address, which can be followed by a port number separated by a : character. The format for brokers is:
    [username]/[password]@[hostname]|[IP Address]:[port]
    
    Some valid examples are:
    • localhost
    • 10.1.1.7:10000
    • broker-host:10000
    • guest/guest@localhost