Telegraf / Server Hostname instead of id

Ok i found the solution on another topic

you must put this on the docker-compose
telegraf:
image: telegraf:1.21 # not the latest
hostname: “{{.Node.Hostname}}”

Thanks for the helping