johrstrom / jmeter-prometheus-plugin

A Prometheus Listener for Apache JMeter that exposes results in an http API
Apache License 2.0
164 stars 109 forks source link

simple_prometheus_example.jmx is not working with grafana.json file after making some config changes #90

Open gochani-dev opened 3 years ago

gochani-dev commented 3 years ago

Hello,

I want to try this plugin however when I am integrating jmeter with prometheus and Grafana, I can't load the data in Grafana. Not sure if I am missing something.

I got these files from example folder here in github. PFA screenshots: image image

Can someone please share the right JMX file wrt grafana.json file. Thanks for your help

johrstrom commented 3 years ago

The jmx and the dashboard seem to be mis-match. The jmx doesn't have ResponseTime_count or ResponseTime_sum.

But since ResponseTime_sum is already a summary you should have ResponseTime_sum_sum and ResponseTime_count. I think you could replace these values in the calulation. i.e., average = ResponseTime_sum_sum / ResponseTime_count.

gochani-dev commented 3 years ago

Thanks @johrstrom, I appreciate. However, this is a bit difficult for someone like me who is trying out this plugin with no prior knowledge of prometheus and grafana workings. I see that you have uploaded JMX file 2 years ago and Grafana.json 4 months ago. Can you please upload the right files so that anyone trying out your given example is able to view the correct graphs ? image