Skip to content

Real-time results of JMeter performance test execution.

Notifications You must be signed in to change notification settings

testsmith-io/jmeter-influxdb-grafana-docker

Repository files navigation

JMeter InfluxDB Grafana Docker container

This container setup allows you to immediately synchronize JMeter results with InfluxDB and visualize what is happening in real time.

Grafana Dashboard

Prerequisites

Please make sure both docker and docker-compose are installed.

Build JMeter docker image

docker build -t jmeter jmeter-docker

Start InfluxDB and Grafana

docker-compose up -d

Adjust JMeter script

Define 2 variables on the Test Plan component.

Name Value
CLIENTNAME Example
STARTDATETIME ${__time(yy-MM-dd-HH:mm:ss:SSS)}

Add & configure the Backend Listener in Jmeter.

JMeter Backend Listener

Name Value
influxdbMetricsSender org.apache.jmeter.visualizers.backend.influxdb.HttpMetricsSender
influxdbUrl http://${__P(INFLUXDB_HOST, localhost)}:8086/write?db=jmeter_results
application ${CLIENTNAME}_${STARTDATETIME}
measurement jmeter
summaryOnly false
samplersRegex .*
percentiles 90;95;99
testTitle Test name
eventTags

Run JMeter script

./run-specific-jmeter-script.sh example.jmx

Filter the correct testrun in Grafana

Grafana Filter

It is the concatenation of CLIENTNAME and STARTDATETIME.

Disclaimer

Inspired by https://www.blazemeter.com/blog/make-use-of-docker-with-jmeter-learn-how

Support This Project

If you find this project useful and want to support its ongoing development, please consider supporting it!

I appreciate your support!

About

Real-time results of JMeter performance test execution.

Resources

Stars

Watchers

Forks