title: Graph for individual sampler throughput in grafana using jmeter and influx db
body: <p>Im trying to graph throughput of individual samplers i have in jmeter ,in grafana using influx db.</p>
  
  <p>Bellow is my jmeter test with 3 thread group having dummy sampler.</p>
  
  <p>1.
   <a href="https://i.stack.imgur.com/dwyko.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dwyko.png" alt="thread group 1 with 10 users ,response time 1 m sec"></a></p>
  
  <p>2.<a href="https://i.stack.imgur.com/X08SH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X08SH.png" alt="thread group 2 with 2 users having response time 10000 mil seconds"></a></p>
  
  <p>3.<a href="https://i.stack.imgur.com/avjw0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/avjw0.png" alt="thread group 3 with 5 users having response time 20000 m sec"></a></p>
  
  <p>According to how jmeter calculates throughput ,</p>
  
  <p>throughput for very first second should be 10 and after 10 seconds throughput should be 2 ,similarly after 20 sec throughput should be 5.</p>
  
  <p>I've attached influx db Screenshot bellow</p>
  
  <p><a href="https://i.stack.imgur.com/B7B61.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B7B61.png" alt="enter image description here"></a></p>
  
  <p>Using this im plotting graph in grafana:</p>
  
  <p>Bellow is what  i've got:
  <a href="https://i.stack.imgur.com/HUh2w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HUh2w.png" alt="Grafana showing individual graph"></a></p>
  
  <p>However in graph as you can see throughput for all showing at a particular time.
  That should not be the case.</p>
  
  <p>I've refered the template given in 
  :<a href="http://www.testautomationguru.com/jmeter-real-time-results-influxdb-grafana/" rel="nofollow noreferrer">http://www.testautomationguru.com/jmeter-real-time-results-influxdb-grafana/</a> <a href="http://www.testautomationguru.com/jmeter-real-time-results-influxdb-grafana/" rel="nofollow noreferrer">6</a>  </p>
  
  <p>For your better understanding 
  Used templating to get all samplers name in grafana<a href="https://i.stack.imgur.com/25xlf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/25xlf.png" alt="templating to get all samplers name "></a>
  And i've asked the same question <a href="https://stackoverflow.com/questions/39719964/how-to-get-throughput-in-influx-db-of-each-sampler-i-have-in-jmeter-test">here</a></p>
  
  <p>I don't think this is working fine for throughput calculation .</p>
  
  <p>Can somebody help me in this. Any other way to achieve my requirement. </p>
  
  <p>Or I'm going wrong(in finding throughput)</p>
  
  <p>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)</p>
  
  <p>Or Can anyone tell me how we get delta and samples and total table .</p>