datadogstatsd

Not able to see metrics on datadog sent by statsd


I am trying to integrate statsd+datadog.

Problem

enter image description here


Solution

  • I was finally able to solve the problem by explicitly opening udp port of my docker container, i.e. -

    -p 8125:8125/udp
    

    full docker run command with necessary env vars and correct port binding would be

    docker run --name dd-agent -e DD_API_KEY=<the-api-key> -e DD_SITE="datadoghq.com" -e DD_DOGSTATSD_NON_LOCAL_TRAFFIC="true" -p 8125:8125/udp gcr.io/datadoghq/agent:7