Merge PR #2184: DataDog hostname reporting fix

This commit is contained in:
Christopher Goes 2018-08-30 23:31:26 +02:00 committed by GitHub
commit 1558bce9e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ api_key: {{DD_API_KEY}}
force_tls_12: yes
# Force the hostname to whatever you want. (default: auto-detected)
hostname: {{inventory_hostname}}
hostname: {{inventory_hostname | replace ("_","-")}}
# Make the agent use "hostname -f" on unix-based systems as a last resort
# way of determining the hostname instead of Golang "os.Hostname()"