I read many topics here about InfluxDB but there is no current solution. Are there any news? My use case is the following:
I want to stream data from a electron to my influxDB via webhooks. In general I want to execute something like this:
curl -i -XPOST 'http://myIPaddress:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server02 value=0.67 1422568543702900257 cpu_load_short,host=server02,region=us-west value=0.55 1422568543702900257 cpu_load_short,direction=in,host=server01,region=us-west value=2.0 1422568543702900257'
The problem is, that InfluxDB doesn’t accept json anymore. It has its own line protocol syntax.
I managed that the event value is the whole string in the single quotes after --data-binary. I tried to put the method as POST, the url as http://myIPaddress:8086/write?db=mydb and the query parameter “data.binary”. This failed because Particel transfer everything as json and a parsing error appears.
Did anyone solve this?