This was set by a previous developer. I created this process as best as possible, but it could not be working.
- On the server, create an app on Dokku:
dokku apps:create datadog
. - Locally, add the dokku source as a remote origin:
git remote add dokku [email protected]:datadog
. - Locally, Push to your new remote:
git push dokku master
- On the server, set environment variables for the app:
dokku config:set DD_API_KEY=api-key-here
- On the server, deactivate dokku's proxy to open the UDP port, as stated here:
dokku proxy:disable datadog
- In your other dokku apps, set
DD_API_KEY
and use the url172.17.0.10:8125
. For example, in productionDATADOG_AGENT_URL=172.17.0.10:8125
.
docker build -t dd-agent .
docker run -d --name dd-agent \
-v /Users/versoul/workspace/go/inBeat/inbeat/backend/files,:/var/log/inbeat:ro \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc/:/host/proc/:ro \
-v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
-e DD_API_KEY="API_KEY" \
-p 8125:8125/udp \
dd-agent