Data in the MQ Channel Statistics workspace is retrieved
from the statistics messages in a system queue of the queue manager.
To display correct data, you must configure the queue manager and
the IBM MQ Monitoring
Agent for
the workspace.
Before you begin
You must have the required authorities for the MQSC commands.
About this task
Do the following steps to collect data for the MQ Channel Statistics workspace.Important: The commands in the following instructions set the level of statistics that is
produced at the queue manager level. You can also set that level at the individual channel level.
For detailed commands about how to set the level of statistics that is produced at the channel
level, see the IBM MQ documentation.
Procedure
- Configure the queue manager to collect channel statistics
information by doing one of the following steps:
- Set the interval over which the accounting data is collected
by doing one of the following steps:
- Run the following MQSC command:
ALTER QMGR STATINT(n)
where n is
the number of seconds over which the accounting data is collected.
- Send the command for setting the interval by using the Take
Action command.
- Enable the statistics information collection for the channels
for which you want to collect statistics information by doing one
of the following steps:
- Optional: Edit the monitoring file of the IBM MQ Monitoring
Agent to allow
it to read messages from the system statistics queues.
The
STATISTICSINFO attribute specifies how the
IBM MQ Monitoring
Agent accesses
the data that is produced by the queue manager. It is set to REMOVE
by default. You can set it to BROWSE to suit the requirements of your
environment. See
Changing monitoring options for
information about how to change monitoring options.
- If you changed the monitoring file of the IBM MQ Monitoring
Agent, restart
the agent for the changes to take effect.
What to do next
You do not need to restart the queue manager for these changes
to take effect.