New Relic K6 integration

I have generated the NR_API_KEY.
I have the NR_ACCOUNT_ID.

Trying to understand what should be the hostname in the below command? Can you please help ?

I tried with But getting error as no host found.

docker run
-d --restart unless-stopped
–name newrelic-statsd
-h $(hostname)
-e NR_API_KEY=""
-p 8125:8125/udp

I am not familiar with NewRelic or even StatsD, but why do you need to give a hostname to the docker container at all? It should bind to localhost by default, right? And this is what the k6 StatsD output also expects by default: