influxdb-rails icon indicating copy to clipboard operation
influxdb-rails copied to clipboard

Support for Influx DB 2.0

Open brocktimus opened this issue 4 years ago • 4 comments

Hiyo,

Just wondering if there was any plans for supporting Influx DB 2.0? I noticed that it requires a different client library and it's API is quite different too.

However this library doesn't interact with a huge surface of said API, so similar to the TestClient it might be possible towrite an InfluxDB2 Client which implemented write, which seems to be the only method needed. But unsure how you'd want to do that with backward compat of library, recommended configuration, etc.

Happy to put in some leg work for this and I've already got some ideas, just looking to see if there were plans or direction for it already first.

Thoughts?

brocktimus avatar Feb 02 '21 08:02 brocktimus

As InfluxDB < 1.8 doesn't seem to be a thing anymore, we should probably just swap out the client library? @ChrisBr thoughts?

hennevogel avatar Feb 06 '21 16:02 hennevogel

As InfluxDB < 1.8 doesn't seem to be a thing anymore, we should probably just swap out the client library? @ChrisBr thoughts?

I don't use InfluxDB anymore. Are you folks happy to use InfluxDB > 2 at openSUSE?

Yeah maintaining only one version would be easier than two so definitely happy to drop support for 1.8 if we decide to go for 2.0. Should be easy to swap, right (famous last words ...)?

ChrisBr avatar Feb 06 '21 17:02 ChrisBr

We would only drop 1.7, 1.8 is supported by https://github.com/influxdata/influxdb-client-ruby

Let's try for 1.0.2, or 2.0 maybe? hehe

hennevogel avatar Feb 06 '21 17:02 hennevogel

Initial support https://github.com/influxdata/influxdb-rails/pull/160. Still some stuff left to fix though.

ChrisBr avatar Feb 14 '21 15:02 ChrisBr