jmeter-prometheus-plugin icon indicating copy to clipboard operation
jmeter-prometheus-plugin copied to clipboard

Some metrics are no longer available during the server shutdown delay

Open keydam opened this issue 2 years ago • 1 comments

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

keydam avatar Mar 01 '23 20:03 keydam

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

Pull requests are always welcome!

johrstrom avatar Mar 01 '23 20:03 johrstrom