This repository includes docker-compose for running JMeter inside a docker container together with Grafana and InfluxDB for visualization and monitoring of JMeter test data.
- Docker
Simply run
docker-compose up -d
and enjoy.
Grafana dashboard can be accessed on localhost:3000
Default test plan (test-plan.jmx) includes a single HTTP sampler. Different test plan can be set inside .env file.
Things like name of test plan, number of threads, hostname, port number etc. are read from .env file which is passed to docker-compose for setting env variables. JMeter accepts user defined variables setting from commandline so whatever is stored in .env file can be passed to JMeter through docker-compose.
This repo uses JMeter InfluxDB v2.0 listener plugin for storage of JMeter test results in InfluxDB database for easier access to the data. The plugin makes it easier to visualize test data using grafana as well.