mqttwarn icon indicating copy to clipboard operation
mqttwarn copied to clipboard

[InfluxDB] Support for InfluxDB 2

Open tobru opened this issue 4 years ago • 3 comments
trafficstars

InfluxDB version 2 has a slightly different API, mainly:

  • Now using API tokens instead of username/password
  • Replacing database/retention policy with bucket

This needs a few changes how the HTTP POST looks like, see Write data with the InfluxDB API.

tobru avatar Nov 01 '21 20:11 tobru

Hi Tobias,

it would be sweet to have an adapter for InfluxDB 2 for mqttwarn. Do you see a chance of contributing it?

influxdb.py has the code for InfluxDB 1. Maybe it will not be too hard to conceive a page of code having corresponding support for InfluxDB 2. I would implement the adapter within a separate file called influxdb2.py.

With kind regards, Andreas.

amotl avatar Aug 05 '22 21:08 amotl

I cannot promise anything, but I might give it a try some when :+1:

tobru avatar Aug 14 '22 17:08 tobru

Dear Tobias,

I cannot promise anything, but I might give it a try some when 👍.

I am sure any patch in this regard will be very much appreciated, with ❤️.

With kind regards, Andreas.

amotl avatar Aug 26 '22 15:08 amotl