Below blog entry provides details about viewing Message Flow Statistics in ACEv11. ACE Toolkit provides detailed tutorial and content is taken from the tutorial that has the same application for deployment.
Step 1: Import the project given as part of Toolkit to monitor the message flow statistics
This simple application contains a message flow which receives HTTP data and echoes it back to the requesting client. This flow will enable us to respond to some small load on the integration server as we view the server's performance statistics in the Web UI.
Step 2: Create Integration Server and start the WebUI
1. Open an App Connect Enterprise Command Console and run the following command to create a working directory which will be used to store the files which the runtime integration server needs:
mqsicreateworkdir C:\IBM\ACE\StatsServer
where C:\IBM\ACE\StatsServer will be the working directory for integration server.
2. Navigate to your server's working directory and locate the file server.conf.yaml. Open it using your preferred text editor, locate the Statistics section and edit the settings (the comments in the sample help with allowed values, and you will need to remove some # comment characters):
Statistics:
Snapshot:
accountingOrigin: 'basic'
nodeDataLevel: 'advanced'
outputFormat: 'json'
publicationOn: 'active'
threadDataLevel: 'basic'
Save and close the file.
3. Back in the App Connect Enterprise Command Console window, start the server with the command:
IntegrationServer --work-dir C:\IBM\ACE\StatsServer --name StatsServer --admin-rest-api 7608 --http-port-number 7808 --console-log
4. In the App Connect Enterprise Toolkit, locate the Integration Explorer view (by default this is located in the bottom left corner), right click on the Integration Servers label and select Connect to an Integration Server. Enter the Host Name as localhost and the port as 7608 and click Finish.
5. Locate the Broker Archive file named StatsBar.bar inside the Application project which you imported earlier named StatsApp, then drag and drop it onto your server named StatsServer.
6. Right click on the server in the Toolkit and launch the WebUI.
Step 3: Execute below command to check the stats in WebUI
Send some messages to the message flow and view statistics in the Web User Interface
1. Navigate to a Command Prompt and run this command a handful of times: (I have run it around 18 times)
curl -X POST http://localhost:7808/request -d HelloWorld
Each execution should receive the same fixed reply message: {"OutputMessage":"This is a fixed reply message!"}
2. Return to the administrative WebUI for the server which you opened in the Prepare stage.
3. When you first open the WebUI you will be looking at information at the Server level. Select the Statistics tab on the navigation bar at the top.
4. After a brief pause you should see a tabular Message flow statistics view which summarises activity at the flow level. Notice that the value in the Total input messages column corresponds to the number of curl requests you made to the server.
5. To get a more detailed view of how data is passing through your flows, change to the Flow node statistics view to see a breakdown for each node in the flow. Click on StatsFlow.
6. In both views, the message flow name links you to another page with information about the message flow. This also has a Statistics tab which includes some graphs which you may like to explore.
Below screenshots for reference,