使用jmeter和influx db在grafana中的单个采样器吞吐量的图表 [英] Graph for individual sampler throughput in grafana using jmeter and influx db

查看:264
本文介绍了使用jmeter和influx db在grafana中的单个采样器吞吐量的图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用influx db绘制grafana中jmeter中单个采样器的吞吐量.

Im trying to graph throughput of individual samplers i have in jmeter ,in grafana using influx db.

下面是我的jmeter测试,其中3个线程组具有虚拟采样器.

Bellow is my jmeter test with 3 thread group having dummy sampler.

1.

2.

3.

根据jmeter如何计算吞吐量,

According to how jmeter calculates throughput ,

第一秒的吞吐量应为10,10秒后的吞吐量应为2,类似地,20秒后的吞吐量应为5.

throughput for very first second should be 10 and after 10 seconds throughput should be 2 ,similarly after 20 sec throughput should be 5.

我已经附上了influx db屏幕截图

I've attached influx db Screenshot bellow

在grafana中使用此im绘图图:

Using this im plotting graph in grafana:

贝勒是我所拥有的:

Bellow is what i've got:

但是在图形中,您可以看到在特定时间所有显示的吞吐量. 事实并非如此.

However in graph as you can see throughput for all showing at a particular time. That should not be the case.

我已经参考了 : http://www.testautomationguru.com/jmeter-real- time-results-influxdb-grafana/ 6

为了您更好的理解 使用模板获取grafana中的所有采样器名称. 而且我问了同样的问题

For your better understanding Used templating to get all samplers name in grafana And i've asked the same question here

对于吞吐量计算,我认为这不能很好地工作.

I don't think this is working fine for throughput calculation .

有人可以帮我这个忙吗?任何其他方式可以达到我的要求.

Can somebody help me in this. Any other way to achieve my requirement.

否则,我会出错(发现吞吐量)

Or I'm going wrong(in finding throughput)

有什么方法可以更新JAR文件或将新JAR文件添加到与吞吐量相关的表中(以与我们在JMETER中获得的相同方式)

IS THERE ANY WAY TO UPDATE JAR FILE OR ADD NEW JAR FILE TO ADD TABLE RELATED TO THROUGHPUT(IN THE SAME WAY AS WE GET IN JMETER)

或者谁能告诉我我们如何获得增量和样本以及总表.

Or Can anyone tell me how we get delta and samples and total table .

推荐答案

我将以下内容用于吞吐量

I use the following for throughput

<rootMetricsPrefix><samplerName>.h.count
Server hits per seconds, this metric cumulates Sample Result and Sub results (if using Transaction Controller, "Generate parent sampler" should be unchecked)

在grafana中具有以下内容,例如

with the following in grafana for e.g.

select value from "jmeter.all.h.count"  WHERE $timeFilter

这篇关于使用jmeter和influx db在grafana中的单个采样器吞吐量的图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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