johrstrom / jmeter-prometheus-plugin

A Prometheus Listener for Apache JMeter that exposes results in an http API
Apache License 2.0
164 stars 109 forks source link

Some metrics are no longer available during the server shutdown delay #117

Open keydam opened 1 year ago

keydam commented 1 year ago

Hi there,

Sorry I think I found another bug ..

When the test is done and Jmeter is waiting for the server to close, the metrics about the requests aren't available anymore . Only the ones about the JVM are ..

The good news is it's easy to patch .. We just need to edit the method "com.github.johrstrom.listener.PrometheusListener.testEnded()" to put the clearing part after the closing of the server.

I can make a pull request if it's OK for you.

Damien

johrstrom commented 1 year ago

I can make a pull request if it's OK for you.

Pull requests are always welcome!