Configuring using UDP

You can configure the process monitoring using UDP.

    Procedure
  1. Update the following properties in the BWAgent configuration files bwagent_db.json or bwagent_ftl.json based on your BWAgent configuration.
    Set statstransport to UDP
    Set statsprovider to true
    Set dbprovidertype to <db type>
    Set dbproviderdriver to <db provider>
    Set dbproviderconnectionurl to <db connection url>
    Set dbprovideruser to <db user>
    Set dbproviderpassword 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 the dbems mode

    BW_HOME\bin>bwadmin config -cf ../config/bwagent_db.json agent

    To start the BWAgent in the dbftl mode

    BW_HOME\bin>bwadmin config -cf ../config/bwagent_ftl.json agent

  2. Start the BWAgent and create the AppNode(s).
  3. 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 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.ini file.

    Ensure the monitor provider property (bw.monitor.provider=UDP) is present in the AppNode config.ini file and in the bwagent.ini file.

  4. Start the AppNode(s).
  5. Upload and deploy the Application. Start the Application.
  6. 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.
  7. Navigate to Application Level 2 > Processes > Graph View > Process Instance. 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].
  8. 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®.