influxdata / influxdb1-client

The old clientv2 for InfluxDB 1.x
MIT License
190 stars 112 forks source link

Add support for flux #22

Open diogovieira opened 4 years ago

diogovieira commented 4 years ago

As far as I can tell, there's no support at all for flux queries in the the currently stable go client. Since it's a feature of the 1.7 stable version of InfluxDB, it's a major disappointment when I first learned of this. The only implementation of a go client that supports flux seems to be the new go client which isn't close to stable.

prashanthjbabu commented 4 years ago

@diogovieira How exactly are you currently running flux queries in InfluxDB 1.7.x using golang? I'm guessing we won't be able to use the v2 golang client ( https://github.com/influxdata/influxdb-client-go ) for InfluxDB 1.7.x .

diogovieira commented 4 years ago

@prashanthjbabu I'm not. I ended up using InfluxQL. AFAICT using v2 for InfluxDB 1.7 or 1.8 is impossible since only InfluxDB 2 is supported. We're stuck with (what I'm assuming is) a deprecated library for a deprecated database.

If you really want to use golang and make flux queries to InfluxDB 1.7 or 1.8 you can always make you own library or make your request manually since the server does support it.