Giter Site home page Giter Site logo

mderevyankoaqa / jmeter-influxdb-listener-plugin Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 781 KB

Influx DB listener plugin for Apache JMeter. Provides the possibility to see the online dashboard (aggregation table, errors, the response body of failures).

License: Apache License 2.0

Java 100.00%

jmeter-influxdb-listener-plugin's Introduction

JMeter InfluxDB listener plugin

Description

The goal of the project is to make a quite similar online dashboard in the same way as JMeter generates.

The plugin sends metrics to InfluxDB and provides the possibility to visualize the charts in Grafana, have the Aggregate report as JMeter creates. Added the possibly to save the following extra fields in the database:

  • Response code;
  • Error message;
  • Response body of the failed requests (can be configured);
  • Connect time;
  • Latency;
  • The response time (uses from the SampleResult.class, needs to make aggregate report).

Compatibility

The supported versions:

  • Java 11 - make sure that you have it.
  • InfluxDB 1.8 or less.
  • JMeter 5.3 or higher.

Deployment

  • Put 'jmeter-plugin-influxdb-listener-<version>.jar' file to ~<JmeterPath<\lib\ext;

  • Run JMeter and select the test plan, Add-> Listener -> Backend Listener.

  • Select from the dropdown item with the name 'org.md.jmeter.influxdb.visualizer.JMeterInfluxDBBackendListenerClient'.

Plugin configuration

Let’s explain the plugin fields:

  • testName - the name of the test.
  • nodeName - the name of the server.
  • runId - the identification number of hte test run, can be dynamic.
  • influxDBHost - the host name or ip of the InfluxDB server.
  • influxDBPort - the port of the InfluxDB server, the default is 8086.
  • influxDBUser - the InfluxDB user.
  • influxDBPassword - the InfluxDB user's password.
  • influxDBDatabase - the InfluxDB database name.
  • retentionPolicy - the InfluxDB database retention policy; the autogen option allows to have no limitation.
  • samplersList - the regex value to sort out the JMeter samplers results; the default is .*. For example if you have the pattern of JMeter test plan development like this - create the 'Transaction controller', add inside of the 'Transaction controller' the Sampler with request, and the name pattern 'GET->Something', like on the see screen below.

The regex ^(Home Page|Login|Search)(-success|-failure)?$ can be used to save only samplers names. The regex can be generated from JMeter menu.

You can modify the generated string in terms of your purposes.

  • useRegexForSamplerList - allows to use the regexps if set to 'true'.
  • recordSubSamples - allows to save the JMeter sub samples if set to 'true'.
  • saveResponseBodyOfFailures - allows to save the response body of the failures.

Grafana dashoard configuration

See instructions here https://grafana.com/grafana/dashboards/13417

jmeter-influxdb-listener-plugin's People

Contributors

mderevyankoaqa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chivasto

jmeter-influxdb-listener-plugin's Issues

plugin not found

Hi, I'm use jmeter 5.3 and put plugin into lib/ext. But I can't found jmeter-influxdb-listener-plugin in the select option when I open the jmeter. what's going on?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.