sdr-enthusiasts / docker-readsb-protobuf

Multi-architecture readsb-protobuf container with support for RTLSDR, bladeRF and plutoSDR (x86_64, arm32v7, arm64v8)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Add variable to allow setting of Telegraf hostname

psfshr opened this issue · comments

Currently Telegraf appears to pick up the container ID as the hostname when logging to InfluxDB. As the ID changes when the container is redeployed, this causes the hostname in Influx DB to change when the container is updated. Can a variable be added to give the option to set the Telegraf hostname to a fixed value which then persists across container instances.

You can set the hostname of the container via "docker run --hostname=foobar". In docker-compose, the same is also possible:

https://stackoverflow.com/a/63291253/166670

So I'm actually using Ansible to do the container management, but just re-reading the docs there's an explicit Ansible property to set the hostname and domain name, so I'll try those.