Closed chrisys closed 4 years ago
I wonder if there is much we can do here @chrisys , other than using "depends_on" in your docker compose for the transport service?!?
Tested "depends_on" in docker compose, but that doesn't cause transport to wait until the InfluxDB server has started running - only that the service is running. Might need to look into other options of polling certain outputs to find when they are genuinely up, before even starting telegraf.
I can't recreate this so far. My tests steps:
INFLUXDB_DB
variableThis resulted in telegraf continuing to try and write to the DB (as sensor data kept coming in) until it eventually succeeded.
My hunch is that @chrisys did not have a valid data source (issue #3 solves this) and therefore telegraf wasn't continuously prompted to try and create the DB. With a valid source, I think this will work as expected.
Closing as I can't recreate this, as long as you have a valid data source.
If the transport primitive starts before InfluxDB the database creation times out and is not retried.