Commit e2cd4d85 authored by Vincent Candeau's avatar Vincent Candeau
Browse files

Fix README.md

parent b36f7ad5
......@@ -2,104 +2,3 @@ Generic Information
-------------------
Convert CSV get from JMX (apache2jmeter) execution to Canopsis events.
Change Log
----------
+---------+-------------------------------------+
| verison | Changelog |
+---------+-------------------------------------+
| v1.0 | Initial Script |
+---------+-------------------------------------+
Setup Information
-----------------
1. Clone the repository
2. launch ./makefile
3. Setup your config.json with correct value
4. Put all your JMX file to the jmx folder
5. Adapt the path (DIR) in service.*.jmeter2canopsis to your need
Configure Option
----------------
+------------------+---------+-------------------------------------------------------------+
| Param | Type | Description |
+==================+=========+=============================================================+
| DEBUG | Boolean | Enable debug mode |
+------------------+---------+-------------------------------------------------------------+
| DEAMON | Boolean | Launch this script in deamon mode |
+------------------+---------+-------------------------------------------------------------+
| PUBLISHNAGIOS | Boolean | Publish scenario result to nagios |
+------------------+---------+-------------------------------------------------------------+
| DUMPJSON | Boolean | DUMP JSON DOC TO FILE |
+------------------+---------+-------------------------------------------------------------+
| IDENT | String | Ident add to the deamon name for multiple launch (Optional) |
+------------------+---------+-------------------------------------------------------------+
| NBR_PROCESS | Integer | How much parallel process |
+------------------+---------+-------------------------------------------------------------+
| PROCESS_PARALLEL | Boolean | True for parallel processing, False for serial processing |
+------------------+---------+-------------------------------------------------------------+
| AMQP | Array | True for parallel processing, False for serial processing |
+------------------+---------+-------------------------------------------------------------+
| PATH_JAVA | String | JAVA Path (default: "/usr/bin/java") |
+------------------+---------+-------------------------------------------------------------+
| PATH_JMETER | String | JMeter Path |
+------------------+---------+-------------------------------------------------------------+
| BIN_JMETER | String | JMeter Bin Patch (default: "bin/ApacheJMeter.jar") |
+------------------+---------+-------------------------------------------------------------+
| PATH_JMX | String | JMX PATH |
+------------------+---------+-------------------------------------------------------------+
| CSV_PATH | String | Temporary CSV Path (default: "/tmp") |
+------------------+---------+-------------------------------------------------------------+
| CMD_JMETER | String | JMeter Command (default: "%s -jar %s -n -t %s") |
+------------------+---------+-------------------------------------------------------------+
| CNTXT_OS | String | OS Description |
+------------------+---------+-------------------------------------------------------------+
| CNTXT_BROWSER | String | Browser Description |
+------------------+---------+-------------------------------------------------------------+
| CNTXT_LOCATION | String | Location Description for multiple execution |
+------------------+---------+-------------------------------------------------------------+
| WAIT | Integer | Global Wait Time |
+------------------+---------+-------------------------------------------------------------+
| EXLUDE | Array | Array of file name to not process |
+------------------+---------+-------------------------------------------------------------+
AMQP Array information:
+-------+---------+----------------------------------+
| Param | Type | Description |
+=======+=========+==================================+
| HOST | IP | AMQP IP |
+-------+---------+----------------------------------+
| PORT | Integer | AMQP Port (default: 5672) |
+-------+---------+----------------------------------+
| USER | String | AMQP User (default: "guest") |
+-------+---------+----------------------------------+
| PASS | String | AMQP Pass (default: "guest") |
+-------+---------+----------------------------------+
| VHOST | String | AMQP VHost (default: "canopsis") |
+-------+---------+----------------------------------+
How to use it
-------------
If you set DEAMON param to True
Then launch the service with service.*.jmeter2canopsis start
If you want to exec the jmeter in a mono execution mode then
./jmeter2canopsis path_to_jmx
Ex:
./jmeter2canopsis /data/canopsis.example.com.jmx
Debug
-----
Step:
{u'event_type': u'eue', u'timestamp': 1415181860, u'component': u'MGDB', u'source_type': u'resource', u'child': u'jmeter.shl90418.eue.resource.MGDB.Test-fonctionnel.Navigation-sur-le-site.shl90418.Linux.FF', u'perf_data_array': [{u'metric': u'duration_01 /', u'value': '77'}], u'type_message': u'step', u'uniqueKey': '6a1f7af05c6505b9aebe9d30539b91f4', u'resource': u'Test-fonctionnel.Navigation-sur-le-site.01-/.shl90418.Linux.FF', u'connector': u'jmeter', u'state': 0, u'connector_name': 'shl90418', u'output': u'shl90418 - Duration: 77', u'display': '01 /'}
Scenario:
{u'type_message': u'scenario', u'cntxt_location': u'shl90418', u'resource': u'Test-fonctionnel.Navigation-sur-le-site.shl90418.Linux.FF', u'event_type': u'eue', u'cntxt_os': u'Linux', u'output': u'shl90418 - Duration: 1 - Step OK:1/4', u'cntxt_env': u'PROD', u'child': u'jmeter.shl90418.eue.resource.MGDB.Test-fonctionnel', u'component': u'MGDB', u'uniqueKey': '07b247165c6ead6842bbb85f8aeba6f3', u'connector': u'jmeter', u'source_type': u'resource', u'state': 2, u'connector_name': 'shl90418', u'timestamp': 1415191368, u'duration': 0, u'perf_data_array': [{u'metric': u'duration_scenario', u'value': 1, u'label': u'Duration Navigation sur le site'}, {u'max': 2, u'metric': u'disponibilite', u'value': 0, u'min': 0}], u'display': u'Navigation-sur-le-site', u'long_output': u'shl90418 - Duration: 1 - Step OK:1/4', u'cntxt_browser': u'FF'}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment