Closed shantanoo-desai closed 1 year ago
Upon changing the DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE
to DOCKER_INFLUXDB_INIT_ADMIN_TOKEN
the data insertion via Telegraf Output plugin works, confirming that the the TOKEN_FILE
doesn't work for InfluxDBv2
Description
Whilst working #95 other output plugins work except for InfluxDBv2 plugin. Incidentally, upon initializing the InfluxDBv2 container directly with the Admin Token via env var, the telegraf output plugin does not throw any authorization errors, which may lead to an inference that
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE
environment variable does not set the Admin Token and may endup setting up a random token causing authorization errors. The fix at the moment to refactor the environment variable to useINIT_ADMIN_TOKEN
as opposed toINIT_ADMIN_TOKEN_FILE
for the InfluxDBv2 Template.Reported Bug: https://github.com/influxdata/influxdata-docker/issues/698