Configuring using UDP
You can configure the process monitoring using UDP.
- Procedure
- Update the following properties in the BWAgent configuration files
bwagent_db.jsonorbwagent_ftl.jsonbased on your BWAgent configuration.Setstatstransportto UDPSetstatsproviderto trueSetdbprovidertypeto <db type>Setdbproviderdriverto <db provider>Setdbproviderconnectionurlto <db connection url>Setdbprovideruserto <db user>Setdbproviderpasswordto <db password>Run the BWAdminconfigcommand with the-cfoption to push the changes from the BWAgent configuration JSON file to thebwagent.inifile.To start the BWAgent in thedbemsmodeBW_HOME\bin>bwadmin config -cf ../config/bwagent_db.json agentTo start the BWAgent in thedbftlmodeBW_HOME\bin>bwadmin config -cf ../config/bwagent_ftl.json agent - Start the BWAgent and create the AppNode(s).
- To ensure minimum data loss, set the values of the following two AppNode properties on the lower side: For example, you can set
bw.monitor.publishtimer= 1500andbw.monitor.batchsize= 1.Batchsize: Process Monitoring data is published in batches. This property specifies the batch size for the data.Publishtimer: This property specifies the time interval for publishing Process Monitoring data.The criteria that is fulfilled first is considered first.
You can configure the AppNode properties using the Configure icon from the Admin UI AppNode level 2 page or from the BWAppNode's
config.inifile.Ensure the monitor provider property (
bw.monitor.provider=UDP) is present in the AppNodeconfig.inifile and in thebwagent.inifile. - Start the AppNode(s).
- Upload and deploy the Application. Start the Application.
- You can enable process monitoring for any particular application by navigating to the Application Level 2 page, turning the Process Monitor button ON and restarting the Application.
- Navigate to
. Alternatively you can also use the shortcut key Shift + P from the Application Level 2 Page to open the Process Monitoring landing Page directly.
To enable process monitoring from the CLI, run the following commands:
bwadmin[admin]> enablestats -d domain -a appspace processinstance b1.application 1.0 TIBCO-BW-ADMIN-300413: Enabled statistics collection for Application [b1.application:1.0]. bwadmin[admin]> enablestats -d domain -a appspace activityinstance b1.application 1.0 TIBCO-BW-ADMIN-300413: Enabled statistics collection for Application [b1.application:1.0].
Alternatively, you can run the single command as follows:
bwadmin[admin]> enablestats -d domain -a appspace processmonitor b1.application 1.0 TIBCO-BW-ADMIN-300413: Enabled statistics collection for Application [b1.application:1.0].
- Select any activity in the process diagram and verify the details in the Details, Configurations, Input data, or the Output data tabs.
In your production environment, it is recommended to use TIBCO FTL®.