Hostname repariert
This commit is contained in:
parent
b3c96687c3
commit
dc2417f6a2
2 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,8 @@ services:
|
||||||
- "docker.group=telegraf"
|
- "docker.group=telegraf"
|
||||||
dns:
|
dns:
|
||||||
- ${LOCAL_DNS_SERVER}
|
- ${LOCAL_DNS_SERVER}
|
||||||
|
environment:
|
||||||
|
- "HOST_NAME=${HOST_NAME}"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
dockersocket:
|
dockersocket:
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
precision = ""
|
precision = ""
|
||||||
|
|
||||||
## Override default hostname, if empty use os.Hostname()
|
## 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.
|
## If set to true, do no set the "host" tag in the telegraf agent.
|
||||||
omit_hostname = false
|
omit_hostname = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue