Skip to content

Instantly share code, notes, and snippets.

@burnsie7
Created November 12, 2018 21:18
Show Gist options
  • Save burnsie7/1788821c7799d6878fb2058f07a5e155 to your computer and use it in GitHub Desktop.
Save burnsie7/1788821c7799d6878fb2058f07a5e155 to your computer and use it in GitHub Desktop.
{
"containerDefinitions": [
{
"name": "datadog-agent",
"image": "datadog/agent:latest",
"cpu": 10,
"memory": 256,
"essential": true,
"portMappings": [
{
"hostPort": 8126,
"protocol": "tcp",
"containerPort": 8126
},
{
"hostPort": 8125,
"protocol": "udp",
"containerPort": 8125
},
],
"mountPoints": [
{
"containerPath": "/var/run/docker.sock",
"sourceVolume": "docker_sock",
"readOnly": true
},
{
"containerPath": "/host/sys/fs/cgroup",
"sourceVolume": "cgroup",
"readOnly": true
},
{
"containerPath": "/host/proc",
"sourceVolume": "proc",
"readOnly": true
}
],
"environment": [
{
"name": "DD_API_KEY",
"value": "<YOUR_API_KEY>"
},
{
"name": "DD_PROCESS_AGENT_ENABLED",
"value": "true"
},
{
"name": "DD_APM_NON_LOCAL_TRAFFIC",
"value": "true"
},
{
"name": "DD_DOGSTATSD_NON_LOCAL_TRAFFIC",
"value": "true"
},
{
"name": "DD_APM_ENABLED",
"value": "true"
},
{
"name": "SD_BACKEND",
"value": "docker"
}
]
}
],
"volumes": [
{
"host": {
"sourcePath": "/var/run/docker.sock"
},
"name": "docker_sock"
},
{
"host": {
"sourcePath": "/proc/"
},
"name": "proc"
},
{
"host": {
"sourcePath": "/sys/fs/cgroup/"
},
"name": "cgroup"
}
],
"networkMode": "bridge",
"family": "datadog-agent-task"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment