johrstrom / jmeter-prometheus-plugin

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

Plugin collects response time only for PASSED transactions #95

Open yobshans opened 3 years ago

yobshans commented 3 years ago

Hello,

Looks like plugin collects response time only for PASSED transactions. jmeter_rt_summary{code="200",instance="localhost:9270",job="jmeter",label="01.OCM.Login",name="jmeter",quantile="0.75"} or jmeter_rt_summary{code="0",instance="localhost:9270",job="jmeter",label="Start Worker nodes:(xxxx:22)",name="jmeter",quantile="0.75"} Will be useful collects also failed transactions response time. I use Transaction Controller which has "do while" loop until some operation will be finished. And during the waiting loop token can be expired. I refresh it but generally Transaction Controller will be in Fail status. And it missed in data collected in Prometheus.

Anyway, I can configure it. Thank you

yobshans commented 3 years ago

There are no statistics for Success and Failure Total and Ratio

yobshans commented 3 years ago

image

johrstrom commented 3 years ago

What is code="0"? That could be a transaction that threw an exception of some kind. Try to misconfigure the sampler get 404s. I'm sure that the listener will show code="404".

There are no statistics for Success and Failure Total and Ratio

I'll have to look into that a bit.

yobshans commented 3 years ago

SSH Protocol Support return code="0" https://github.com/yciabaud/jmeter-ssh-sampler It is OK, Passed. Other HTTP transaction returns 404/401/etc

Thank you

yobshans commented 3 years ago

image

yobshans commented 3 years ago

Only 200 and 0 collected