How to get throughput( in influx db) of each sampler i have in jmeter test

余生长醉 提交于 2019-12-25 09:16:47

问题


I want to plot the graphs of throughput/unit time in grafana using influx db of each samplers i have in my jmeter test.I can get the overall throughput of a test/unit time (using additional tables delta and total in influx db).

Can somebody help me to get this done.

Or is there any way to get sampler wise throughput in influx db in the same way as we get count of sample zz “jmeter.zz.a.count".May be by using user.properties/jmeter.properties.

Any kind of help in this appreciable.


回答1:


Jmeter backend listener, by default, will not poll sampler results to influx. To start with, you need to mark summaryOnly to "false" as shown below:

And then, you can make use of a modified jar file (you can search for this on testautomationguru(dot)com. There is a modified jar file you can download and replace in this lib/ext folder. This modified jar will allow the backend listener to write the sampler metrics directly into influx. These are the same metrics that you will see in your command line

Once you have the jar replaced in lib/ext, you need to pass in the influx details via cli or update them in user.properties files

Now, if you go into your influx DB, and enter the query "select * from samples", you should see metrics like below

Now go to grafana and graph it



来源:https://stackoverflow.com/questions/39719964/how-to-get-throughput-in-influx-db-of-each-sampler-i-have-in-jmeter-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!