InfluxDB 2.0 support

InfluxDB 2.0 is now in Alpha and the writing API has changed slightly making it incompatible with the current integration.

from the influx 2.0 docs:

curl -XPOST "http://localhost:9999/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \
    --header "Authorization: Token YOURAUTHTOKEN" \
    --data-raw "mem,host=host1 used_percent=23.43234543 1556896326" 

The biggest change appears to be the auth token header instead of basic auth/no auth from before, should not be too difficult to implement


it appears Influx 2.0 will have a compatibility mode for influx 1 on release and that there is a workaround using telegraf:

Still something to consider I believe

Please open an issue at :slight_smile: That way it stays visible as a feature request.


1 Like

How does one configure this plugin? I’m getting an error saying bind address is already in in use when I try to get the “influxdb_listener” plugin to listen to localhost:8086/write.