Configuring using REST
You can configure process monitoring using REST.
- Procedure
- Update the following properties in the BWAgent configuration files
bwagent_db.json or
bwagent_ftl.json based on your BWAgent configuration.
Set
statstransport
to RESTSetstatsdataformat
to jsonSetstatsprovider
to trueSetdbprovidertype
to <db type>Setdbproviderdriver
to <db provider>Setdbproviderconnectionurl
to <db connection url>Setdbprovideruser
to <db user>Setdbproviderpassword
to <db password>Run the BWAdmin config command with the -cf option to push the changes from the BWAgent configuration JSON file to the bwagent.ini file.To start the BWAgent in thedbems
modeBW_HOME\bin>bwadmin config -cf ../config/bwagent_db.json agent
To start the BWAgent in the dbftl modeBW_HOME\bin>bwadmin config -cf ../config/bwagent_ftl.json agent
- 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= 1500 and
bw.monitor.batchsize= 1.
batchsize: Process Monitoring data is published in batches. This property specifies 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.ini file.Ensure the monitor provider property (bw.monitor.provider=REST) is present in the AppNode config.ini file and in the bwagent.ini file.
- Start the AppNodes.
- 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 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®.