Hostname repariert

This commit is contained in:
Florian Zirker 2022-03-28 21:47:16 +02:00
parent b3c96687c3
commit dc2417f6a2
2 changed files with 3 additions and 1 deletions

View file

@ -30,6 +30,8 @@ services:
- "docker.group=telegraf"
dns:
- ${LOCAL_DNS_SERVER}
environment:
- "HOST_NAME=${HOST_NAME}"
networks:
dockersocket:

View file

@ -62,7 +62,7 @@
precision = ""
## Override default hostname, if empty use os.Hostname()
hostname = ""
hostname = "${HOST_NAME}"
## If set to true, do no set the "host" tag in the telegraf agent.
omit_hostname = false