Site icon Vinsguru

JMeter & InfluxDB Integration – How To Troubleshoot

This post is to troubleshoot the issues you are facing with InfluxDB while writing data using the methods mentioned in the below posts,

Please make sure all the below steps working fine in the order.

  • Ensure that you have the Database created in InfluxDB. If not, Run the the query ‘CREATE DATABASE “demo”‘ in the Admin Interface
  • System time of InfluxDB server should be in sync with the System time of JMeter. (at least should be ahead of Jmeter machine time. Not behind)
    This is very important as InfluxDB is a time-series DB. By default, it will show only the records where timestamp of the records < system timestamp.
  • Install ‘PostMan‘ in your chrome (Please do these steps from the machine where JMeter is going to run)
    • Add POSTMAN
    • Update the URL as shown here – http://[ipaddress]:8086/write?db=[database]
      Ex: http://10.11.12.13:8086/write?db=demo Note the port – it should be 8086 for writing the data. 8083 is for admin interface.
    • Lets try to send this record through postman testautomationguru,key=test count=1,duration=1
      • testautomationguru – is the name of table/measurement which will be created at run time by InfluxDB if it is not present already.
      • key – it is a tag for faster query
      • count and duration – some fields with values
    • HTTP Method should be POST
    • Place the data under Body –> Raw section
    • Click on ‘Send’
    • You should be able to see the testautomationguru measurement & querying the measurement should show the series.
  • Share This:

    Exit mobile version