Created
October 8, 2019 19:48
-
-
Save ncracker/1a64377deac1203f737435a7a54d313b to your computer and use it in GitHub Desktop.
This file contains 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
# Datadog Docker agent | |
# - live processes enabled | |
# - logs enabled & proxied | |
# - 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_LOGS_ENABLED=true \ | |
-e DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=True \ | |
-e DD_LOGS_CONFIG_LOGS_DD_URL={YOUR_PROXY_SERVER}:10514 \ | |
-e DD_LOGS_CONFIG_LOGS_NO_SSL=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