How to Parse JSON Data using telegraf and push to influxdb


My task is, I have to read a JSON File using telegraf and the same thing to push to INFLUXDB and visualize it in the chronograph.I tried, but unable to do so.

That too, I couldn’t find any documentation which can help me.

Kindly guide me.

Thanks & Regards,


how you are getting/reading Json data ? Elaborate more please.

you can have Python script to read Json data and convert it to Line Protocol to POST it on InfluxDB using curl.


Thank You for info.

Actually Some real time data generated is getting saved in MySQL.Before
getting saved, it seems a JSON file is generated which I have to read and save it into InfluxDB.

The JSON file is continuously updated, which has to be continuously saved into the influxDB.

Can you please throw some light on it ?

Thanks & Regards,


First option what you mentioned is using Telegraf, which I yet to use.

I wrote python script to read input Json file and parse it for line protocol, python can read file continusualy and convert it to line protocol.

Or, let me test telegraf next week and will update here.


Hi Venkat,

Did you find out solution to read from JSON to telegraf and then push it to influxdb? I am struggling to do the same.

If you would share your ideas it would be great. Thanking you in advance.