Starting collection of message flow statistics and accounting data
You can start collecting snapshot accounting and statistics data for your message flows by using the web user interface or the mqsichangeflowstats command.
Before you begin
- Create a message flow and deploy a BAR file that contains the message flow. For more information, see Creating a message flow and Deploying integration solutions to a production environment.
- Configure the web user interface; see Configuring the IBM Integration Bus web user interface.
- Ensure that the publication of events is enabled, and the pub/sub broker is correctly configured. The default configuration enables publication of events using the built-in MQTT pub/sub broker. If WebSphere® MQ is installed, and there is a WebSphere MQ queue manager specified on the integration node, then the MQ pub/sub broker is used for the publication of events. For more information, see Configuring the publication of event messages and Configuring the built-in MQTT pub/sub broker.
- Read the concept topic Message flow statistics and accounting data.
About this task
You can start collecting accounting and statistics data for one or more active message flows by using one of the following methods:
Starting collection of message flow statistics by using the web user interface
Procedure
- Start the web user interface for your integration node;
see Accessing the web user interface. The navigator is displayed on the left side of the pane, showing the servers (integration servers), message flows, and other resources that are owned by your integration node.
- In the navigator, find the resource for which you want
to collect message flow statistics. You can collect statistics data for all message flows in an integration server or an application, or for an individual message flow.
- Click the down arrow next to the resource to display the menu, and then click Statistics on.
Results
What to do next
Starting collection of message flow statistics by using the mqsichangeflowstats command
Procedure
If you use the mqsichangeflowstats command to start statistics collection and specify the required output formats, the specified formats replace the output formats that were previously being emitted for the message flow (they are not added to them). If you use the mqsichangeflowstats command to start the collection of statistics, without specifying an output format on the command, the statistics data is emitted to the user trace log by default.
Select the granularity of the data that you want to be collected by specifying the appropriate parameters on the mqsichangeflowstats command. You must request statistics collection on an integration node basis. If you want to collect information for more than one integration node, you must issue the corresponding number of commands.
To start collecting message flow accounting and statistics data:
Results
When the command completes successfully, data collection for the specified resources is started:
- If you requested snapshot data, information is collected for approximately 20 seconds, and the results are written to the specified output.
- If you requested archive data, information is collected for the interval that is defined for the integration node (on the mqsicreatebroker or mqsichangebroker command, or by the external timer facility ENF). The results are written to the specified output, the interval is reset, and data collection starts again.