You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2017/01/15 18:46:07 UTC

[Bug 60590] New: BackendListener : Add Influxdb BackendListenerClient implementation to JMeter

https://bz.apache.org/bugzilla/show_bug.cgi?id=60590

            Bug ID: 60590
           Summary: BackendListener : Add Influxdb BackendListenerClient
                    implementation to JMeter
           Product: JMeter
           Version: 3.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: p.mouawad@ubik-ingenierie.com
  Target Milestone: ---

Add a new backend listener to send data to InfluxDB server. 
InfluxDB is a time series database built to handle high write and query loads.

This backend writes data with the HTTP API based on the influxdb line protocol.
See :
HTTP API (https://docs.influxdata.com/influxdb/v1.1/guides/writing_data/)
Line protocol reference
(https://docs.influxdata.com/influxdb/v1.1/write_protocols/line_protocol_reference/)

Syntax example :
<measurement>[,<tag_key>=<tag_value>[,<tag_key>=<tag_value>]]
<field_key>=<field_value>[,<field_key>=<field_value>] [<timestamp>]

At the start and the end of a JMeter test, the backend automaticaly adds two
annotations in the events measurement for a better usage with Grafana ( See
grafana documentation
http://docs.grafana.org/reference/annotations/#influxdb-annotations)

PR : https://github.com/apache/jmeter/pull/246

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60590] BackendListener : Add Influxdb BackendListenerClient implementation to JMeter

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60590

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Wed Jan 25 17:02:57 2017
New Revision: 1780241

URL: http://svn.apache.org/viewvc?rev=1780241&view=rev
Log:
Bug 60590 BackendListener : Add Influxdb BackendListenerClient implementation
to JMeter.
Fix missing httpcore-nio in bundle
Bugzilla Id: 60590

Modified:
    jmeter/trunk/build.xml

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60590] BackendListener : Add Influxdb BackendListenerClient implementation to JMeter

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60590

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
             Status|NEW                         |RESOLVED

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Sun Jan 15 21:19:52 2017
New Revision: 1778947

URL: http://svn.apache.org/viewvc?rev=1778947&view=rev
Log:
Bug 60590 - BackendListener : Add Influxdb BackendListenerClient implementation
to JMeter
Partly Based on PR 246  from by Logan Mauzaize (logan.mauzaize at gmail.com)
and
Maxime Chassagneux (maxime.chassagneux at gmail.com).

Fixed following issues in PR:
- Reinit httpRequest
- Fix issue with broken NaN comparison which led to missing
- Improve InfluxDB Annotations
- Use StringBuilder
- Init StringBuilder capacity
- Add documentation

This closes #246
Bugzilla Id: 60590

Added:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/AbstractInfluxdbMetricsSender.java
  (with props)
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/HttpMetricsSender.java
  (with props)
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java
  (with props)
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbMetricsSender.java
  (with props)
Modified:
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/component_reference.xml

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60590] BackendListener : Add Influxdb BackendListenerClient implementation to JMeter

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60590

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60590] BackendListener : Add Influxdb BackendListenerClient implementation to JMeter

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60590

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Sat Jan 21 09:18:49 2017
New Revision: 1779711

URL: http://svn.apache.org/viewvc?rev=1779711&view=rev
Log:
Bug 60590 BackendListener : Add Influxdb BackendListenerClient implementation
to JMeter.
Partly based on <pr>253</pr> by  Maxime Chassagneux (maxime.chassagneux at
gmail.com).
Set timestamp to be able to use AsyncHttpClient
Use AsyncHttpClient
Allow configuration of Send interval
This closes #253
Bugzilla Id: 60590

Modified:
    jmeter/trunk/LICENSE
    jmeter/trunk/bin/jmeter.properties
    jmeter/trunk/build.properties
    jmeter/trunk/build.xml
    jmeter/trunk/eclipse.classpath
    jmeter/trunk/lib/   (props changed)
    jmeter/trunk/lib/aareadme.txt
    jmeter/trunk/res/maven/ApacheJMeter_parent.pom
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/GraphiteBackendListenerClient.java
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/AbstractInfluxdbMetricsSender.java
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/HttpMetricsSender.java
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60590] BackendListener : Add Influxdb BackendListenerClient implementation to JMeter

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60590

--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Created attachment 34655
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34655&action=edit
Test plan using Mirror Server for people who want to test

You need to install last Influx DB and Grafana Server.
It's pretty straightforward

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60590] BackendListener : Add Influxdb BackendListenerClient implementation to JMeter

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60590

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Sat Jan 21 10:06:30 2017
New Revision: 1779715

URL: http://svn.apache.org/viewvc?rev=1779715&view=rev
Log:
Bug 60590 BackendListener : Add Influxdb BackendListenerClient implementation
to JMeter.
Annotation contained "timestamp in its label
Annotation for end of test was not send due to HttpClient being closed before
last send was done
Bugzilla Id: 60590

Modified:
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/HttpMetricsSender.java

Author: pmouawad
Date: Sat Jan 21 10:06:58 2017
New Revision: 1779716

URL: http://svn.apache.org/viewvc?rev=1779716&view=rev
Log:
Bug 60590 BackendListener : Add Influxdb BackendListenerClient implementation
to JMeter.
Restore tag in annotations
Bugzilla Id: 60590

Modified:
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60590] BackendListener : Add Influxdb BackendListenerClient implementation to JMeter

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60590

--- Comment #6 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Wed Jan 25 22:01:03 2017
New Revision: 1780273

URL: http://svn.apache.org/viewvc?rev=1780273&view=rev
Log:
Bug 60590 BackendListener : Add Influxdb BackendListenerClient implementation
to JMeter.
Fix corruption of ArrayList due to Multi-thread access
Fix timestamp which was computed too late
Bugzilla Id: 60590

Modified:
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/HttpMetricsSender.java
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.java
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbMetricsSender.java

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60590] BackendListener : Add Influxdb BackendListenerClient implementation to JMeter

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60590

--- Comment #7 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Wed Jan 25 22:17:00 2017
New Revision: 1780277

URL: http://svn.apache.org/viewvc?rev=1780277&view=rev
Log:
Bug 60590 BackendListener : Add Influxdb BackendListenerClient implementation
to JMeter.
Avoid useless instanciation and set capacity
Bugzilla Id: 60590

Modified:
   
jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/influxdb/HttpMetricsSender.java

-- 
You are receiving this mail because:
You are the assignee for the bug.