DataDog hostname reporting fix

This commit is contained in:
Greg Szabo 2018-08-29 14:54:22 -04:00 committed by Christopher Goes
parent fd8c1e5253
commit fa78303253
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()"