Last active
June 20, 2019 20:11
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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