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

[Question Only] Is it usable with InfluxDB 2.0

Open CatsPlugins opened this issue 6 years ago • 12 comments

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!

CatsPlugins avatar Oct 17 '19 18:10 CatsPlugins

Same question here?

andig avatar Oct 28 '19 10:10 andig

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 avatar Oct 28 '19 15:10 rawkode

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

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

rawkode avatar Oct 28 '19 15:10 rawkode

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?

andig avatar Oct 28 '19 17:10 andig

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

rawkode avatar Oct 28 '19 17:10 rawkode

Example in this issue:

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

rawkode avatar Oct 28 '19 17:10 rawkode

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 avatar Oct 29 '19 12:10 andig

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 :/

andig avatar Oct 29 '19 22:10 andig

Is there any update on InfluxDB 2.0 compatibility?

jadamroth avatar Jan 13 '20 00:01 jadamroth

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

rawkode avatar Jan 13 '20 11:01 rawkode

Hey @rawkode , any updates on timeline?

jadamroth avatar Feb 12 '20 15:02 jadamroth

Hi @jadamroth,

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

Regards

bednar avatar Feb 21 '20 11:02 bednar