Incorrect hostname picked up by Telegraf (docker container)

That explains it, very good to know.

That seems to be the only option from the looks of it. As I’m deploying from a compose file, and the telegraf configuration is parsed when the container runs, I need to figure out a way to make this dynamic so that the environment variable matches each host it runs on. It would be great to have the ability to provide a file, as opposed to a value, similar to how it works when using Docker Secrets.

At this point I think it’s clear that the issue is no longer related to telegraf, and more so with Docker. I’ll come back and update this thread if I manage to figure something out.

Thanks the help!