#Super Monitor ##Intro JMX Monitor which presents data using Cubism.js horizon chart.
##Requirements
- Java7
- Cassandra
- Blueflood
- Maven
##Setup
The scripts provided in the root directory of this project expect a certain directory layout as follows
- root
- conf
- lib
- blueflood
- cassandra
- src
- ....
- Download and extract Cassandra to a directory of your choice.
- Make sure that the following environment variables are set.
JAVA_HOME(Java7 JRE location)CASSANDRA_HOME(To the directory you extracted the files to in step 1)
- Modify your Cassandra config file
%CASSANDRA_HOME%\cassandra\conf\cassandra.yamlas you like. I kept the defaults which will setup a storage location at%CASSANDRA_HOME%\cassandra\data - Open a cmd and run the
%CASSANDRA_HOME%\bin\cassandra.batfile. - (Optional) You can verify that Cassandra is running, by trying to connect to the server. To do this run the
%CASSANDRA_HOME%\bin\cassandra-cli.batfile.
- Download and extract maven to directory of choice.
- Make sure that the following environment variables are set.
JAVA_HOME(JRE location)%JAVA_HOME%\binset inPATHM2_HOME(To the directory you extracted the files to in step 1)M2(%M2_HOME%\bin)%M2%set inPATH
###Blueflood
- Clone the Blueflood git repository.
git clone git@github.com:rackerlabs/blueflood.git - Make sure that the following environment variables are set.
JAVA_HOME(Java7 JRE location)BLUEFLOOD_HOME(To the directory you cloned to in step 1)
- (Windows only) As of 9/12/2014 there are a few source modifications that need to be made to get the tests to pass on windows.
- Edit
%BLUEFLOOD_HOME%\blueflood-kafka\pom.xmland add an extra/at the end offile://so that it looks like this<kafka.config>file:///${basedir}... - Edit
%BLUEFLOOD_HOME%\blueflood-core\src\test\java\com\rackspacecloud\blueflood\service\ConfigurationTest.javaand add an extra/at the end offile://near line 51.
- Edit
- Create the Uber jar by running
mvn package -P all-modulesin an Administrator cmd window. - Create config files and a startup file.
- With
Cassandrarunning create theDATAtablespace by opening up a cmd window and executing%CASSANDRA_HOME%\bin\cassandra-cli.bat -f %BLUEFLOOD_HOME%\src\cassandra\clie\load.script -h 127.0.0.1 -p 9160 - Edit
conf/blueflood.confif you wish
###Webbit
This project currently uses the 0.4.16-SNAPSHOT version of webbit. Since SNAPSHOTS are not held in maven central we will need to install it to our local maven repo.
- Clone the Webbit git repostiory
git clone git@github.com:webbit/webbit.git cd webbit- Run
mvn install
###Super-MQMonitor
- Run
maven packageto create the UBER JAR.
##Running Must be done in order.
- Start Cassandra by executing
startCassandra.bat - Start Blueflood by executing
startBlueflood.bat - Start Super-MQMonitor by executing
startMonitor - Open up web browser and point to
http://localhost:8080
- Add configuration options