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. |
...
Step 2: Configuring the web application that need monitoring
Use either one of the following approaches to configure the web application before deploying any web application, to make AS ready to publish the data to BAM.
...
Info |
---|
The UI has the precedence over web.xml configurations. As a result, if you disable web apps statics monitoring from the UI configurations in the web.xml will not work. |
Enabling monitoring via the UI
- On the Main menu, under the Applications menu, click List.
- Click the Context link of the respective web application.
The selected application dashboard will appear.
- Select the Enable BAM statistics checkbox.
...
- Start BAM. For more information, see Starting the server.
- 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.
Log into the BAM management console.
On the Main menu, under BAM Toolbox, click Add.
Select the ToolBox From URL option.
Enter the URL of the WebApps_Stats_Monitoring toolbox.
Click Install.
Refresh after a few seconds to see if the toolbox is installed.- Send a few request from AS (Invoke any web application that has enabled statistics monitoring).
- On the Main menu, under Analytics, click List.
The webapp statistics will be displayed. Execute the webapp statistics or schedule its running sequence.
...