The syntax and options of imqcmd metrics are shown in Table 13–3 and Table 13–4, respectively.
Table 13–3 imqcmd metrics Subcommand SyntaxTable 13–4 imqcmd metrics Subcommand Options
Subcommand Options |
Description |
---|---|
-b hostName: portNumber |
Specifies the hostname and port of the broker for which metrics data is reported. The default is localhost:7676. Literal IP addresses as host names: You can use a literal IPv4 or IPv6 address as a host name. If you use a literal IPv6 address, its format must conform to RFC2732, Format for Literal IPv6 Addresses in URL's. |
-int interval |
Specifies the interval (in seconds) at which to display the metrics. The default is 5 seconds. |
-m metricType |
Specifies the type of metric to display: ttl Displays metrics on messages and packets flowing into and out of the broker, service, or destination (default metric type). rts Displays metrics on rate of flow of messages and packets into and out of the broker, connection service, or destination (per second). cxn Displays connections, virtual memory heap, and threads (brokers and connection services only). con Displays consumer-related metrics (destinations only). dsk Displays disk usage metrics (destinations only). |
-msp numSamples |
Specifies the number of samples displayed in the output. The default is an unlimited number (infinite). |
-n destName |
Specifies the name of the physical destination (if any) for which metrics data is reported. There is no default. |
-n serviceName |
Specifies the connection service (if any) for which metrics data is reported. There is no default. |
-t destType |
Specifies the type (queue or topic) of the physical destination (if any) for which metrics data is reported. There is no default. |
Start the broker for which metrics information is desired.
See Starting Brokers.
Issue the appropriate imqcmd metrics subcommand and options as shown in Table 13–3 and Table 13–4.