UbikLoadPack observability plugin is a Free and Open-Source plugin for Apache JMeter which allows you to monitor a Non GUI/Cli performance test (Standalone or distributed) from your favority browser.
It also exposes an Open Metrics endpoint so that OpenMetrics compatible tools like Prometheus can scrape it and make metrics of your performance test available in these tools.
It is easily installable through JMeter-Plugins manager:
./PluginsManagerCMD.sh install ulp-observability-plugin
See in this blog the pre-requisites to install any plugin this way.
- Name of the Sampler used for the load test
- Number of requests
- % Error
- Average time
- Percentiles 1 (aggregate_rpt_pct1 property)
- Percentiles 2 (aggregate_rpt_pct2 property)
- Percentiles 3 (aggregate_rpt_pct3 property)
- Max time
- Throughput in req/s
Blog showing installation procedure
Observability Listener JMeter Control Panel
Example of metrics summary in non-graphical mode
- Left y-axis: metric of each group of samples
- Right y-axis: cumulative number of threads in each group of samples
- Graphs currently implemented for: average response, maximum response, percentiles, error percentage and throughput
Example summary of total metrics
Blog showing how to connect Prometheus to plugin
### Install Prometheus
- If you haven't installed prometheus on your device yet, Download the latest release of Prometheus for your platform, then extract it.
- If you use Windows, add the extracted directory to the PATH env variable.
- If you use Linux, add it to the $PATH variable. Add it to the .bashrc file to make it permanent.
Inside the directory of your JMeter test plan, add the following prometheus.yml file :
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'codelab-monitor'
# A Configuration containing Observability plugin endpoint to scrape:
scrape_configs:
- job_name: 'observability-plugin'
scrape_interval: 5s
metrics_path: /ulp-o-metrics
static_configs:
- targets: ['localhost:9090']
Change 'localhost:9090' above to match the host:port where plugin is running and listening.
Sample response from Jetty server for sample metrics in OpenMetrics format
### Launch Prometheus
- cd to the test plan directory
- then enter this command to start using prometheus (on port 9095, change it with the one you prefer) :
prometheus --web.enable-admin-api --web.listen-address=:9095 --config.file=prometheus.yml
- You can then access Prometheus from this url
Read our Contributor documentation