How to get more than one graph of samplers (which i have in my jmeter) in a graph of grafana using templating

青春壹個敷衍的年華 提交于 2019-12-11 05:59:11

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/39827803/how-to-get-more-than-one-graph-of-samplers-which-i-have-in-my-jmeter-in-a-grap

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