Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/ubikingenierie/ulp-observability-plugin

UbikLoadPack observability plugin: Monitor your Apache JMeter performance test from your browser
https://github.com/ubikingenierie/ulp-observability-plugin

jmeter metrics monitoring observability openmetrics performance-testing prometheus

Last synced: 2 months ago
JSON representation

UbikLoadPack observability plugin: Monitor your Apache JMeter performance test from your browser

Lists

README

        

# UbikLoadPack Observability Plugin for JMeter

[UbikLoadPack](https://UbikLoadPack.com) observability plugin is a **Free** and **Open-Source** plugin for [Apache JMeter](https://jmeter.apache.org) 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](https://www.ubik-ingenierie.com/blog/update-jmeter-plugins-in-ci-cd-pipeline/) the pre-requisites to install any plugin this way.

## Metrics displayed:

- 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

## JMeter Plugin configuration

[Blog showing installation procedure](https://www.ubik-ingenierie.com/blog/ubik-load-pack-observability-plugin/)

### Screenshots




Observability Listener JMeter Control Panel

### Logs by the plugin in console





Example of metrics summary in non-graphical mode

### Browser view

#### Screenshots




Example of a metric chart

- 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

## Connecting the plugin to Prometheus

![Legende](screenshot/Prometheus.png)

### Blog

[Blog showing how to connect Prometheus to plugin](https://www.ubik-ingenierie.com/blog/ubik-load-pack-observability-plugin-connect-the-plugin-to-prometheus/)

### Install Prometheus

- If you haven't installed prometheus on your device yet,
[Download the latest release of Prometheus](https://prometheus.io/download/) 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.

### Configure Prometheus

Inside the directory of your JMeter test plan, add the following prometheus.yml file :

```yml
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.

### Endpoint content exposed by the plugin





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) :

```bash
prometheus --web.enable-admin-api --web.listen-address=:9095 --config.file=prometheus.yml
```

- You can then access Prometheus from this [url](http://localhost:9095/graph>)

### Roadmap

See [our repository issues](https://github.com/ubikingenierie/ulp-observability-plugin/issues?q=is%3Aopen+is%3Aissue+milestone%3A1.0.0)

### Want to contribute

Read our [Contributor documentation](contributor-jumpstart.md)