4

I refer to the "http://www.testautomationguru.com/jmeter-real-time-results-influxdb-grafana/" article,

through grafana + infludx but there is a jmeter tps (throughput) value I do not know how get?

I tried "jmeter.all.h.count" but it did not seem to be the value I wanted:

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
blue
  • 217
  • 6
  • 18

3 Answers3

0

You are referring to wrong component for values.

For GraphiteBackendListenerClient, sent values are described here:

For InfluxdbBackendListenerClient, sent values can be found here:

Both components don't send throughput as it can be computed using Grafana and other metrics.

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
  • Thanks for your reply, I tried "InfluxdbBackendListenerClient" but still did not find "throughput" value – blue Oct 24 '17 at 08:56
  • Thank you. I also feel that need other solutions to get throughput value:( – blue Oct 24 '17 at 09:32
  • Wait 1 or 2 days, and if there's no better answer, I'll accept , because it doesn't solve my problem completely – blue Oct 24 '17 at 09:45
0

Found your answer in influxdb grafana tutorial, Use jmeter.all.a.count:

If I query the “jmeter.all.a.count” which has the no of requests processed for every second by the server, I get below output. [No of requests processed / unit time = Throughput]

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
  • Thank you@user7294900 there's also a question, and now I know Throughput = (number of requests) / (total time) You can get TPS, I know number of requests= SELECT sum ("value") FROM "jmeterall.a.count" WHERE $timeFilter, but I don't know "total time" =? How do you get it? – blue Oct 25 '17 at 02:44
  • See https://stackoverflow.com/questions/12245475/how-to-find-accurate-the-total-testing-duration-time-in-jmeter – Ori Marko Oct 25 '17 at 03:07
  • Thank you very much@@user7294900. I'll try it – blue Oct 25 '17 at 03:28
  • Hello@user7294900, I try and try and know the "total time" meaning, but I still do not know exactly what should write in grafana, SELECT sum ("value") /unit time??? FROM "jmeterall.a.count" WHERE $timeFilter, here I don't know how to the "unit time" become " total time" ? wait for a reply, thank you – blue Oct 25 '17 at 06:42
  • I am using Jmeter 4.0 and using https://grafana.com/dashboards/3351 for my dashboards. Using the following for TPS is no where close to what Jmeter reports say - ```SELECT last("count") FROM "jmeter" WHERE "application" =~ /^$Application$/ AND $timeFilter GROUP BY time($aggregation) fill(null)``` – Jai Jul 19 '18 at 19:53
0

I wrote the blog you were referring to!

We can not expect the backend listener metrics to give you an accurate result as you expect in the aggregate report - (specially percentiles, avg etc)

BackEndListener basically gives the metrics over time. You should plot the graph using the data over time. If you try to use single stat metric of Grafana with that data , then you will see a complete mismatch.


In the blog - I was using the modified apache_core.jar library to get the results as you are actually expecting. However I stopped sharing (after jmeter 2.13, jmeter 3.0) the modified lib.

vins
  • 15,030
  • 3
  • 36
  • 47
  • Very glad to see your reply! I think I know what you mean, finally, want to ask in your blog reviews see such a "If you need throughput which is number of requests processed per unit time you can query -" jmeter.all.a.count "- group by 1 sec, 1 min as you want. Select sum (value) from jmeter.all.a.count" Group by field - enter 1s or 60s "that would be able to get throughput, I want to try, there seems to be something similar, this is my last attempt:) – blue Oct 26 '17 at 02:57
  • @blue, what version of JMeter are you using? – vins Nov 01 '17 at 10:07
  • jmeter version is 3.3 – blue Nov 03 '17 at 08:39
  • 1
    @blue I have included the modified jar for JMeter version 3.3 - You can download if you want. – vins Nov 13 '17 at 04:21
  • Thank you very much. I still think about what modules you've changed so that I can learn and improve – blue Nov 13 '17 at 06:07
  • @blue , I modified org.apache.jmeter.reporters.Summariser – vins Nov 13 '17 at 14:45
  • @vins Do you have a version of the jar for Jmeter 4.0 ? – Jai Jul 19 '18 at 20:26