Query db to get line protocol instead of JSON


#1

Hi, I am trying to write a relay program that is getting a request which can be a query like a request contains DB, measurement and time frame and read from influxDB and publish the data to another influxDB in another host. Now my question is how can I eliminate the conversation of JSON to Line Protocol since when I query the influx the result is JSON? I think my program would be more efficient if I can get the data from the influx in Line Protocol and publish that as is to the far side. Any suggestion?


#2

Line protocol is not a supported output format. Only CSV and JSON


#3

Thank you for the quick reply @rawkode. Do you have any suggestion on what would be the best and most efficient of transferring hot data to another host without using the cluster mode of influx?