How can we collect the fqdn name of the host through telegraf.conf

How can we collect the host’s fqdn name using telegraf.conf file.Is there something we can do like hostname = ${hostname --fqdn}.

Override default hostname, if empty use os.Hostname()

hostname = “”

If set to true, do no set the “host” tag in the telegraf agent.

omit_hostname = false

Try something like this and let me know if it gets what you need:

export FQDN=`hostname --fqdn`
telegraf.conf:  hostname = "${FQDN}"