diff --git a/command/agent/config.go b/command/agent/config.go index ef4956e9b443..5ac93f728427 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -1053,6 +1053,10 @@ func (a *Telemetry) Merge(b *Telemetry) *Telemetry { if b.DisableHostname { result.DisableHostname = true } + + if b.UseNodeName { + result.UseNodeName = true + } if b.CollectionInterval != "" { result.CollectionInterval = b.CollectionInterval }