Adding ElasticsearchAppenderClass & longevitytests 59/38559/19
authorKumar Rishabh <shailrishabh@gmail.com>
Mon, 9 May 2016 07:07:25 +0000 (12:37 +0530)
committerLuis Gomez <ecelgp@gmail.com>
Wed, 8 Jun 2016 08:25:50 +0000 (08:25 +0000)
commit5b10d7bcd6024990def420d5269e22ad96de9b13
tree376ab21bb0eee5d5dfda831c2c81e855096ff03f
parent51f22e359b414a943d79d4978dcf8e916b5dada2
Adding ElasticsearchAppenderClass & longevitytests

This adds ElasticsearchAppender Class which can query for harvested
MBeans in an Elasticsearch Node to which karaf-decanter dumps the data.
The current MBeans that can be currently queried for are:
    java.lang:type=GarbageCollector
    java.lang:type=Threading
    java.lang:type=ClassLoading
    java.lang:type=Memory
    java.lang:type=OperatingSystem

This also adds a method plot_points which draws graph using mathplotlib
for the above metrices
    Usage example is defined in the file.

This also adds long duration robot tests for the above class in the
folder longevity. A sample run would look something similar to

robot -v PORT:9200 -v IP:10.2.4.204 -v DURATION:20 -v STEP:1 010_Check_JVM_Resource.robot
where elasticsearch node is running on 10.2.4.204:9200 and each of the
tests is to be run for a duration of 20 seconds.
Also adds a test to plot_points where the graph is plotted using the
points from the starting of the elasticsearch node to the current time.

Change-Id: I4acb3cef32213e91cbaadb40c0c21deef8f4c060
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
.gitignore
csit/libraries/Appenders/ElasticsearchAppender.py [new file with mode: 0644]
csit/suites/test/Check_JVM_Resource.robot [new file with mode: 0644]
csit/variables/Variables.py