This is the starting class for the web app statistics. This class is initiated through tomcat ValveBase. Classpath has to be added
to
/repository/conf/tomcat/catelina-server.xml as following
Purpose of this class is to initiate the publishing web application statistics. Web applications statistic will be measured in per server, per tenant
and per web application. We are sending only meta data and payload data, We are not using correlation data,
Following details will be extracted from the bam server, basis of per server, per tenant and per web application. This will be done on the hive query of the BAM Tool Box
1. Request count/ Response Count / Fault Count
2. Average Response Time
3. Maximum Response Time
4. Minimum Response Time
5. Request, Response Count as a Bar Chart
6. Number of User Visits
7. Average Time length of User Visits
There are few things to be done prior to enabling the statics.
Configuring Web App Statics Data Agent
1. Go to /repository/conf/etc and open bam.xml file and enable WebappDataPublishing as follows:
disable
enable
This is disabled by default, and BAM publishing won't occur even if you proceed with the rest of the steps if not explicitly enabled.
2. Log in to the Application Server management console and select "Webapp Data Publishing" from the "Configure" menu.
The "Webapp Statistics Publisher Configuration" window opens. Fill it appropriately.
Stream Name - bam_webapp_statistics
Version - 1.0.0
Nick Name - WebappDataAgent
Description - Publish webapp statistics events
If you need to change above values you should change them in the webapp_stats_stream_def in the tool box too. if not tool box will not work.
Receiver URL - tcp://{host}:{port} -> host- thrift host, port - thrift port
Username - {Cassandra Username}
Password - {Cassandra Password}
3. After successful deployment of your web app you have to click to enable "Enable BAM Statistics" in "Home > Manage > Applications > List > Application Dashboard