Docker image to run Jmeter exposing Prometheus Listener for Jmeter metrics.
Docker image to run Jmeter exposing Prometheus Listener for Jmeter metrics.
Apache JMeter
an application designed to load test functional behavior and measure performance - https://jmeter.apache.org
Prometheus Listener for Jmeter
an independent JMeter pluign to expose JMeter metrics to Prometheuss - https://github.com/johrstrom/jmeter-prometheus-plugin
The version number of this images is composed of two version numbers
chiabre/jmeter_prom_exporter
This images provides:
Additional info:
-n
(non-GUI mode) and -Dlog_level.jmeter
(log level)OFF
, it can be overridden using JMETER_LOG_LEVE
L as env. variable (available log levels as per JMeter documentation are DEBUG
, INFO
, WARN
, ERROR
and OFF
)-Jprometheus.ip=0.0.0.0
(the ip the http server will bind to, specific for container)JVM_ARGS
env. varibalelatest
, 5.5-0.6.0
5.4.1-0.6.0
5.4-0.6.0
5.3-0.6.0
build.sh
docker run --rm --name jmeter -i -v
pwd:
\tmp-p 9270:9270 chiabre/jmeter_prom_exporter:5.4.1-0.6.0 -t [YOUR_SCRIPT].jmx
[YOUR_SCRIPT].jmx as to be present in the current path path, Additional JMeter or Promethues listern argument can be appended to the command.
During test execution the Prometheus JMX exporter metrics are at:
Additional JMeter plugins can me mounted in container in the following folder /opt/apache-jmeter-${JMETER_VERSION}/lib/ext
Thanks to https://github.com/hauptmedia/docker-jmeter, https://github.com/hhcordero/docker-jmeter-server and https://github.com/justb4/docker-jmeter for providing the Dockerfiles that inspired me.