kiwimato / nut-influxdb-exporter

A script that can be used to export data from NUT to InfluxDB on Docker - Unraid
Mozilla Public License 2.0
15 stars 20 forks source link

Support for InfluxDB 2.0 #16

Open therealmysteryman opened 3 years ago

therealmysteryman commented 3 years ago

Since InfluxDB 2.0 has been released, I was wondering if you could add support for InfluxDB 2.0 ?

Thanks

mcindea commented 3 years ago

Unfortunately the InfluxDB python module ( https://pypi.org/project/influxdb/ ) doesn't yet support 2.0 and I see Grafana support for 2.0 is still in Beta. I just noticed that my setup broke on Unraid, and I think the only solution for now is to stick to pre 2.0 until proper support is released or we find a python module which supports it.

therealmysteryman commented 3 years ago

Thanks. I agree probably wait until there better support for it :)

Le ven. 5 mars 2021 à 03:34, Mihai Cindea notifications@github.com a écrit :

Unfortunately the InfluxDB python module ( https://pypi.org/project/influxdb/ ) doesn't yet support 2.0 and I see Grafana support for 2.0 is still in Beta. I just noticed that my setup broke on Unraid, and I think the only solution for now is to stick to pre 2.0 until proper support is released or we find a python module which supports it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mihai-cindea/nut-influxdb-exporter/issues/16#issuecomment-791256734, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZMZRPBSELQE3HP6A2LWA3TCCJQ3ANCNFSM4YLWW7IQ .

-- JF

dbsqp commented 3 years ago

Hi, I forked and added InfluxDBv2 support. Is minor change in python. My code will diverge to cover multiple NUT servers from single docker container and only key metrics but code might still be useful if you want to add v2 support. https://github.com/dbsqp/nut-influxdbv2 will get docker container working asap

jwillmer commented 1 year ago

I used this code base and the one from @dbsqp to create another version that is compatible with InfluxDBv2 and the data structure of the original code base. That way all tutorials/templates on the internet will work out of the box. You can find the project in the jwillmer/nut-influxdbv2 repository. It hopefully will also show up in the Unraid community store soon. The support page can already be found at forums.unraid.net/topic/130458-support-nut-influxdbv2-exporter

kiwimato commented 1 year ago

@jwillmer @dbsqp thank you for your work I would like to point out that the reason I'm not maintaining this script anymore is that Telegraf added support for NUT in this PR, and I will use Telegraf instead from now on. I will make a note in the README file to deprecate my repo and point it to yours instead.