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:
https://v2.docs.influxdata.com/v2.0/write-data/#influxdb-api

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

2 Likes

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 https://github.com/brocaar/chirpstack-application-server :slight_smile: That way it stays visible as a feature request.

Done!

1 Like