influxdata / influxdb-php

influxdb-php: A PHP Client for InfluxDB, a time series database
http://influxdb.com
MIT License
432 stars 125 forks source link

[Question Only] Is it usable with InfluxDB 2.0 #139

Open CatsPlugins opened 5 years ago

CatsPlugins commented 5 years ago

Hello,

I'm using InfluxDB 1.7 with this PHP SDK, and it's working fine.

I want to upgrade to InfluxDB 2.0, so will it work with v2?

Thank you!

andig commented 4 years ago

Same question here?

rawkode commented 4 years ago

No, it won't work; though work has begun on a client for 2.x. Please bare with us. I'll keep this issue updated over the coming days and weeks.

rawkode commented 4 years ago

I'm the interim, we suggest using Telegraf as a proxy.

https://www.influxdata.com/blog/influxdb-2-migration-path-instrumentation/

andig commented 4 years ago

I'm the interim, we suggest using Telegraf as a proxy.

This is a little offtopic, please advise if there's a better place to ask. The link above suggests to use Telegraf for relaying. Thats good to know!

However, I already have outputs.influxdb_v2 enabled for purpose of sending metrics to a metrics bucked. If I need to use it for inputs.influxdb -> outputs.influxdb_v2 relay too, then it would need to go to a different bucket. How would I separate these two?

rawkode commented 4 years ago

You'd need to use the namepass/namedrop parameters on your 2 different InfluxDB outputs, or use a separate instance of Telegraf

rawkode commented 4 years ago

Example in this issue:

https://github.com/influxdata/telegraf/issues/809

andig commented 4 years ago

Example in this issue: influxdata/telegraf#809

Thank you! Joined https://github.com/influxdata/telegraf/issues/1778 which seems to have a more detailed discussion.

andig commented 4 years ago

Unfortunately, as the docs say:

This plugin allows Telegraf to provide an InfluxDB 1 /write compatible proxy. This will not allow you to read from InfluxDB, should you be using any of the client libraries for that purpose.

As I'm periodically copying from another DB to influx (v1 at the moment) and need to know the last point written (i.e. do a query) that won't work :/

jadamroth commented 4 years ago

Is there any update on InfluxDB 2.0 compatibility?

rawkode commented 4 years ago

@jadamroth No, not at the moment. With our recent beta announcement, this will change very soon :+1:

jadamroth commented 4 years ago

Hey @rawkode , any updates on timeline?

bednar commented 4 years ago

Hi @jadamroth,

we started working on influxdb-client-php for InfluxDB 2... first results coming soon

Regards