本文介绍了如何使用模板在grafana图中获取一个以上的采样器图(我在jmeter中具有)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 grafana仪表板中每个样本(我在我的 jmeter测试中)获得吞吐量/秒 strong>使用 influxdb .

我正在使用模板化进行配置.显示模板设置的屏幕截图

我的查询是-

SELECT count("responsecode") 
FROM "samples" 
WHERE "label" =~ /$label/ 
AND "status" =~ /$status$/ 
AND $timeFilter GROUP BY time($interval)

我的目的是要获得下拉选项,以在 grafana仪表板图中选择一个或多个采样器的图或响应. /p>

当我从下拉列表中选择多个采样器时,我都将获得响应.附加了我在选择采样器1和2后得到的响应,我得到的是1和2的总响应,如您在此图片

解决方案

我能够解决它.

我所缺少的是图形的查询部分,我错过了按标签名称分组.

在我的情况下,其按标记(标签)分组.这样就解决了问题.

Im trying to get throughput/sec of each samples (i have in my jmeter test) in grafana dashboard using influxdb.

I'm using templating to configure .screenshot showing template settings

My query is--

SELECT count("responsecode") 
FROM "samples" 
WHERE "label" =~ /$label/ 
AND "status" =~ /$status$/ 
AND $timeFilter GROUP BY time($interval)

My intention is to get drop down option to select graph or response of one or more samplers in a graph of grafana dashboard.

When i select more than one samplers from drop down i should get response for both.Attached the response what i'm getting after selecting sampler 1 and 2.What i'm getting is, total response of 1 and 2 as you can see in this image

解决方案

I was able to solve it.

What i was missing is in the query part in graph i missed group by tag name.

In my case its group by tag(label) . and that solves the issue.

这篇关于如何使用模板在grafana图中获取一个以上的采样器图(我在jmeter中具有)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 10:19