This toolbox is a tool used to monitor statistics of a Cassandra cluster The Cassandra Statistics Monitoring toolbox in WSO2 BAM can be used for monitoring Cassandra clusters managed by WSO2 Storage Server. With this toolbox Cassandra statistics are displayed in the BAM dashboard. You have to install this toolbox in WSO2 BAM, and start the statistics publisher in Storage Server . Then statistics can be viewed graphically in the BAM dashboard. Use the following instructions to setup the BAM Toolbox.To setup the BAM Toolbox:as explained below.
Table of Contents | ||||
---|---|---|---|---|
|
Setting up the BAM Toolbox
- Stop the BAM server if it is already started.
- Open
master-datasources.xml
inBAM_HOME/repository/conf/datasources
, and add theWSO2SS_STAT_DATASOURCE
data source. This is where the summarized data is stored. Add the following XML element to the
<datasources>
section and make the necessary changes.Info An H2 database is used to store summarized data.
Code Block language html/xml <datasource> <name>WSO2SS_STAT_DATASOURCE</name> <description>The datasource used for ss stat analyzer</description> <definition type="RDBMS"> <configuration> <url>jdbc:h2:repository/database/samples/WSO2SS_STAT_DB;AUTO_SERVER=TRUE</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>org.h2.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource>
- Restart Start the BAM server.
Enabling SS to publish Cassandra statistics to BAM
- Stop the Storage Server if it is already started.
To start Cassandra statistics publisher, open
cluster-monitor-config.xml
inSS_HOME/repository/conf/etc
, and set the<monitoring_enable>
setting totrue
(default is set tofalse
).Info Please note that this should be enabled in only one SS node because SS publishes data of the whole Cassandra cluster. (If you enable publishers in multiple SS nodes, duplicate data will be published to BAM.)
- Set
<bam_secure_url>
and<bam_receiver_url>
as well. - Provide the cron expression in
<cron_expression>
to schedule the publisher. - Provide the BAM admin credentials.
Restart Start the Storage Server.
titleInfo Note Port offset might may need to be changed.
- In BAM, login to the dashboard in the left panel. Now the published and summarized Cassandra statistics are shown in the dashboard.