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.
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.
Rules:
Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
You don’t do it in flux, you do it in the panel options in Grafana.
On your original question you can set the Telegraf hostname in the config, for docker stuff I just use
omit_hostname = true
Okay! Thanks for explaining! Thats very helpful.