Skip to content

Instantly share code, notes, and snippets.

@halfvector
Last active June 20, 2019 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halfvector/9f94051ec96ed602d40208ad44efc6b9 to your computer and use it in GitHub Desktop.
Save halfvector/9f94051ec96ed602d40208ad44efc6b9 to your computer and use it in GitHub Desktop.
Running Datadog via Docker on OSX with APM and StatsD exposed to host
#!/bin/sh
# Don't forget to get an API key from https://app.datadoghq.com/account/settings#api
# DD_DOGSTATSD_NON_LOCAL_TRAFFIC = statsd on host even on OSX using native docker engine.
docker run -d --rm --name dd-agent \
-p 8126:8126/tcp -p 8125:8125/udp \
-v /var/run/docker.sock:/var/run/docker.sock:ro -v /proc/:/host/proc/:ro \
-e DD_API_KEY=$your_api_key_here \
-e DD_APM_ENABLED=true -e DD_APM_ENV=localhost -e DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true \
datadog/agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment