influxdata / influxdb-relay

Service to replicate InfluxDB data for high availability
MIT License
855 stars 350 forks source link

Support of InfluxDB 2 #84

Closed bartlomiejwulff closed 3 years ago

bartlomiejwulff commented 3 years ago

Hi guys,

I have installed the influxdb-relay with InfluxDB2 and I was just wondering if this is the supported constellation. Based on few code lines, the relay supports InfluxDB 1 only.

However, it does not work for me with InfluxDB 2 as the relay use /write endpoint and InfluxDB2 use /api/v2/write:

influxdb_client.rest.ApiException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Length': '35', 'Content-Type': 'application/json', 'Date': 'Tue, 29 Jun 2021 07:06:08 GMT', 'Connection': 'close'})
HTTP response body: {"error":"invalid write endpoint"}

Can you please confirm?

Is there a plan to support InfluxDB 2?

Thanks in advance!