Stratos Manager (SM) and Cloud Controller (CC), which are products used in Private PaaS, publish events to WSO2 Business Activity Monitor (BAM). Stratos Manager publishes events when a user subscribes to a cartridges or unsubscribes to a cartridge. The following screenshot displays the details that are sent to BAM with every event:
Cloud Controller publishes events when an instance is going through a state transition. The following screenshot displays the values that are sent to BAM:
Enabling publishing in SM
To enable publishing in SM, add the following configurations to the
file, which is in the
Enabling publishing in CC
To enable publishing in CC, follow the steps below:
- Update the
dataPublisher enableproperty to to
<dataPublisher enable=”true”>in the
cloud-controller.xmlfile, which is in the
- Edit the
carbon.xmlfile, which is in the
<CC_HOME>/repository/conf/directory, as follows:
- Set the IP address and BAM port.
<BamServerURL>and replace it with the following and set the
PORTas the BAM IP and Thrift port.
Configuring metering statistics in BAM
The following configurations need to be done on WSO2 Business Activity Monitor (BAM):
- Edit the
master-datasources.xmlfile, which is in the
<BAM_HOME>/repository/conf/datasources/directory, as follows:
WSO2MYSQL_DATASOURCEto connect to an external MySQL database.
MYSQL_PASSWORDwith relevant values.
- Copy the MySQL connector JAR into
The Toolbox includes a Hive analytic script and a jaggery application. The Hive script is used to retrieve data from the Cassandra column family and insert it into an external MySQL database.
The Jaggery application is designed in order to display metering information for each tenant. Single tenant and multi-tenant cartridge information are displayed separately via the WSO2 Private PaaS dashboard, which can be accessed via the UI.