Bug 57246 - BackendListener : Create a Graphite implementation
Summary: BackendListener : Create a Graphite implementation
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.12
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on: 55932 57350 57351
Blocks:
  Show dependency tree
 
Reported: 2014-11-22 15:39 UTC by Philippe Mouawad
Modified: 2014-12-15 17:07 UTC (History)
1 user (show)



Attachments
Screenshot showing what I can get during load test (LIVE results) (501.31 KB, image/png)
2014-11-22 15:51 UTC, Philippe Mouawad
Details
Test Plan used (40.70 KB, application/xml)
2014-11-22 15:58 UTC, Philippe Mouawad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Mouawad 2014-11-22 15:39:02 UTC
Implementation supports:
- Text Format
- Pickle Format
Comment 1 Philippe Mouawad 2014-11-22 15:41:22 UTC
Date: Sat Nov 22 15:40:35 2014
New Revision: 1641083

URL: http://svn.apache.org/r1641083
Log:
Bug 57246 - BackendListener : Create a Graphite implementation
Bugzilla Id: 57246

Added:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/AbstractGraphiteMetricsSender.java   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/GraphiteBackendListenerClient.java   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/GraphiteMetricsSender.java   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/PickleGraphiteMetricsSender.java   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/SocketConnectionInfos.java   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/SocketOutputStream.java   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/SocketOutputStreamPoolFactory.java   (with props)
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/TextGraphiteMetricsSender.java   (with props)
Modified:
    jmeter/trunk/xdocs/changes.xml
Comment 2 Philippe Mouawad 2014-11-22 15:51:24 UTC
Created attachment 32221 [details]
Screenshot showing what I can get during load test (LIVE results)

To get this:
1/ I setup InfluxDB to enable Graphite Listener, in influxdb.conf find input_plugins.graphite and set this:
  # Configure the graphite api
  [input_plugins.graphite]
  enabled = true
  address = "0.0.0.0" # If not set, is actually set to bind-address.
  port = 2003
  database = "jmeter"  # store graphite data in this database
  # udp_enabled = true # enable udp interface on the same port as the tcp interface

2/ I connect on InfluxDB and create 2 databases:
- graphana : used by Graphana to store the Dashboard I will create in it
- jmeter : used by InfluxDB to store data sent to Graphite Listener as per   database = "jmeter"  config element in influxdb.conf
3/ I have Graphana installed (just drop application in Apache) and configure in graphana/config.js:
      datasources: {
        influxdb: {
          type: 'influxdb',
          url: "http://localhost:8086/db/jmeter",
          username: 'root',
          password: 'root',
        },
        grafana: {
          type: 'influxdb',
          url: "http://localhost:8086/db/grafana",
          username: 'root',
          password: 'root',
          grafanaDB: true
        },
      },

I will attach the plan I used.
Comment 3 Philippe Mouawad 2014-11-22 15:58:47 UTC
Created attachment 32222 [details]
Test Plan used

Test plan that needs a Tomcat installation to run.
Comment 4 Philippe Mouawad 2014-11-30 20:30:41 UTC
Date: Sun Nov 30 20:29:49 2014
New Revision: 1642603

URL: http://svn.apache.org/r1642603
Log:
Bug 57246 - BackendListener : Create a Graphite implementation
Make reported percentiles configurable
Compute min and max within sliding window
Move threads (Users) computing to UserMetric
Bugzilla Id: 57246

Added:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/UserMetric.java   (with props)
Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/AbstractBackendListenerClient.java
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/SamplerMetric.java
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/GraphiteBackendListenerClient.java
    jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 5 Philippe Mouawad 2014-12-05 12:21:02 UTC
Date: Fri Dec  5 12:19:44 2014
New Revision: 1643254

URL: http://svn.apache.org/viewvc?rev=1643254&view=rev
Log:
Bug 57246 - BackendListener : Create a Graphite implementation
Switch separator to semicolon for all parameter
Replace HashMap by Map
Bugzilla Id: 57246

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/GraphiteBackendListenerClient.java
    jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 6 The ASF infrastructure team 2022-09-24 20:37:58 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3483