Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

The Application Server previously had the capability of only monitoring statistics through WSO2's Business Activity Monitor (BAM). However, now the Application Server 5.2.0 has the capability of monitoring web application statistics as well using BAM 2.3.0.

...

  1. Before starting AS carryout the following actions:

    • Go to {AS_HOME}/repository/conf/ and open carbon.xml
      Look for <offset>0</offset> and change it 1.
    • Go to {AS_HOME}/repository/conf/etc/ and open bam.xml.
      Look for <WebappDataPublishing>disable</WebappDataPublishing> and enable it.
  2. Start the APPLICATION Server. For more information, see Starting the server.
  3. Log into the AS management console. 

    Info

    Please note that the webapp Webapp data publishing settings need to be configured separately for the tenants.

  4. On the Configure menu, click Webapp Data Publishing.

  5. Select the Enable webapp stats option.
     
  6. Leave the Stream Name, Version, Nick Name, Description as it is.
    If you need to change the latter fields, you will have to make some more changes in the tool box and hive script. 
  7. Enter the Receiver URL.
    This refers to the Thrift URL. This is normally tcp://{host}:7611. If you need to use SSL for this the URL will be tcps://{host}:7711. If you change the offset of the BAM server to 1, both ports will be incremented by 1 (7612, 7712)
  8. Enter the Cassandra Username. 
  9. Enter the Cassandra Password.
  10. Click Update to successfully configure the AS for Data publishing to BAM.

...

  1. Start BAM. For more information, see Starting the server.
  2. If you need to change databases which stores statistic data:
    • Create a database.
    • Configure the database in {BAM_HOME}/repository/conf/datasources/master-datasources.xml as WSO2BAM_DATASOURCE.
  3. Log into the BAM management console.

  4. On the Main menu, under BAM Toolbox, click Add.

  5. Select the  ToolBox From URL option.

  6. Enter the URL of the WebApps_Stats_Monitoring toolbox.

  7. Click Install.
    Refresh after a few seconds to see if the toolbox is installed.

  8. Send a few request from AS (Invoke any web application that has enabled statistics monitoring).
  9. On the Main menu, under  Analytics, click List.
    The webapp statistics will be displayed.
  10. Execute the webapp statistics or schedule its running sequence.

...