Resource Flow Statistics in ACEv11
Step 1: Import the ResourceStatsApp application from ACEv11 Toolkit
Click Import and the ResourceStatsApp application will be imported into your workspace. The project contains a message flow named FileRecordSplitter, and the BAR file ResourceStatsDeploy.bar.
The message flow is designed to read in a file, record by record, splitting the records from one another using the end of line character. Each record contains either a JSON or XML structure. The message flow examines the first character of the line in order to decide which one it is, and routes it to the relevant FileOutput node. Each output file name is provided a number which reflects the line number of the record in the input file. This scenario lets us view varying File resource statistics in the web UI.
Step 2: Create an Integration Server and Deploy the application
1. Open an App Connect Enterprise Command Console and create a working directory for an Integration Server using the following command:
2. Navigate to this directory and locate the file 'server.conf.yaml'. Open it, and edit the Resource Statistics section (you will need to uncomment the lines and set the following values) as follows:
Save and close the file.
3. In the ACE Command Console, start an Integration Server using the command:
IntegrationServer --work-dir C:\IBM\ACE\ResourceStatsServer --name ResourceStatsServer --admin-rest-api 7609 --http-port-number 7909 --console-log
Connect to the integration server from your Toolkit's Integration Explorer view.
4. In the Toolkit, open the message flow FileRecordSplitter. Examine the FileInput node properties, and on the Basic properties tab edit the Input Directory property to a local directory on your file system. By default this has been set to C:\ResourceStatsInput. Do the same thing for the two FileOutput nodes, whose output directory has been defaulted to C:\ResourceStatsOutput. From the Application Development view in the Toolkit, drag and drop deploy the project ResourceStatsApp, to the server.
I have created these directories inside, C:\IBM\ACE\ResourceStatsServer
5. Right click on the server in the Toolkit and launch the WebUI.
Step 3: Check resource statistics
1. Open a web browser to view the Web UI for the server (http://localhost:7609) and click on the 'Resource Statistics' tab on the top navigation bar. Wait for a moment and a vertical list of statistics types will appear on the left side of the page, where you should select 'File'.
2. From your Toolkit workspace, look inside the ResourceStatsApp project and copy the provided input file InputData.txt and paste it into the input directory on your file system.
3. Check the output file directory, and you should find several JSON output files and several XML output files. Open these and view the contents if you wish.
4. Return to the Web UI for the server, and after a moment you should see several graphs with file statistics (such as Files Read, Records Read, Bytes Read, Files Created, Records Written, Bytes Written) begin to rise with direct correlation to the amount of data read, processed and written by the server.
Below screenshots for reference.