Skip to content

Instantly share code, notes, and snippets.

@ncracker
Created October 8, 2019 19:45
Show Gist options
  • Save ncracker/052137d2b5b6ad01586d0b919ee603e5 to your computer and use it in GitHub Desktop.
Save ncracker/052137d2b5b6ad01586d0b919ee603e5 to your computer and use it in GitHub Desktop.
# Datadog Docker agent
# - live processes enabled
# - using a proxy (see proxy docs > https://docs.datadoghq.com/agent/proxy/?tab=agentv6)
DOCKER_CONTENT_TRUST=1 docker run -d --name dd-agent --restart=always \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc/:/host/proc/:ro \
-v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
-v /etc/passwd:/etc/passwd:ro \
-e DD_API_KEY={YOUR_API_KEY_HERE} \
-e DD_PROCESS_AGENT_ENABLED=true \
-e DD_URL=https://{YOUR_PROXY_SERVER}:3834 \
datadog/agent:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment