如何在jmeter测试中获得每个采样器的吞吐量(以流入db为单位) [英] How to get throughput( in influx db) of each sampler i have in jmeter test

查看:204
本文介绍了如何在jmeter测试中获得每个采样器的吞吐量(以流入db为单位)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用每个采样器中的入库在 grafana中绘制吞吐量/单位时间的图jmeter 测试.我可以获得测试/单位时间的总体吞吐量(使用额外的表增量和influx db中的总数).

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.

或者有什么方法可以像获取样本zz"jmeter.zz.a.count"一样,在influx db中获取采样器的智能吞吐量.可以通过使用user.properties/jmeter.properties.

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.

对此有任何帮助.

推荐答案

默认情况下,Jmeter后端侦听器不会轮询采样器结果以防涌入.首先,您需要将summaryOnly标记为"false",如下所示:

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:

然后,您可以使用经过修改的jar文件(可以在testautomationguru(dot)com上进行搜索.可以在此lib/ext文件夹中下载并替换经过修改的jar文件.此经过修改的jar将允许后端侦听器将采样器指标直接写入大量流量. 这些指标与您在命令行中看到的指标相同

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

一旦在lib/ext中替换了jar,则需要通过cli传入流入详细信息或在user.properties文件中更新它们

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

现在,如果您进入Influx数据库,并输入查询从样本中选择*",您应该会看到类似以下的指标

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

现在转到grafana并对其进行绘图

Now go to grafana and graph it

这篇关于如何在jmeter测试中获得每个采样器的吞吐量(以流入db为单位)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆