Closed ROODAY closed 3 years ago
InfluxDB v2 requires using authentication token
, organization
, and bucket
arguments. The influxdb API integration within glances will need an update to be able to use it first.
Quick analyse concerning the implementation of the InfluxDB 2 API:
Questions to be taken into account before the development:
@paularmstrong Implementation for the new exporter (called influxdb2) done in the develop branch.
Read the doc ==> https://github.com/nicolargo/glances/blob/develop/docs/gw/influxdb.rst#influxdb-v2-from-influxdb-v18xflux-and-influxdb-v2x
Note: you need to install the https://pypi.org/project/influxdb-client/ InfluxDB client.
Tested with InfluxDB 2.0.3.
Please can you test it on your side.
Description
I followed the docs for connecting to influx but whenever I try to run
glances --export influxdb
I getCannot connect to InfluxDB database 'glances' (401: {"code":"unauthorized","message":"Unauthorized"})
. I had similar authentication issues connecting Influxdb to Grafana, and was only able to fix it by using the Flux connection options that used Organization and Bucket instead of username and database. Is there a way to use similar connection options for glances? This is my current conf file:Versions
Logs