Hello everyone! I’m using a TIG stack (Telegraf, InfluxDB, Grafana) in Docker to monitor my server and I keep running into the same issues.
When the Telegraf container gets updated (removed and recreated), the Hostname changes. This leads to Grafana to split the data (best case) or show no data at all (worst case) since it was told to show a specific field which is named after the host.
Now, I have tried regexing the column (example: /uptime_format/ in flux) but I’m a noob at both regex and flux so that doesn’t work either.
I think I might need to set the hostname in the telegraf container but I thought I’d ask if anyone else solved this problem before. :)
Thank you for reading.
Yes I am. I now chose to just change it in the config, restarted telegraf and it works now. Thanks :)