Configuring the collection of message flow statistics by using the mqsichangeflowstats command
You can configure the collection of accounting and statistics data for your message flows by using the mqsichangeflowstats command.
Before you begin
- Read the topics Message flow statistics and accounting data and Configuring the collection of message flow accounting and statistics data.
- Configure an integration server by following the instructions described in Configuring an integration server by modifying the server.conf.yaml file.
- Create your message flow and deploy it to your integration server. For more information, see Creating a message flow and Deploying integration solutions to a production environment.
- Ensure that the publication of events is enabled, and the pub/sub broker is correctly configured. For an integration node, the default configuration enables publication of events that use the built-in MQTT pub/sub broker. If IBM MQ is installed and there is a default IBM MQ queue manager that is specified on the integration node or independent integration server, the IBM 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.
About this task
You can configure the collection of message flow accounting and statistics data for one or more active message flows by using the mqsichangeflowstats command.
Alternatively, you can configure the statistics and accounting properties in the .yaml configuration file for your integration node or server, as described in Configuring the collection of message flow statistics by using a .yaml configuration file.
If you want to view message flow statistics by using the web user interface, you must specify JSON as one of the output formats when you configure statistics collection. You can also report the statistics to the user trace, IBM MQ, or MQTT.
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 emitted for the message flow. The specified formats are not added to the previously emitted formats. If you start statistics collection by running the mqsichangeflowstats command 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.
To configure the collection of message flow accounting and statistics data, complete the following steps:
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 output specified in the node.conf.yaml or server.conf.yaml file.
- If you requested archive data, information is collected for the interval that is defined for the integration node or server (in the node.conf.yaml or server.conf.yaml file). The results are written to the specified output. The interval is reset and data collection starts again.