Skip to content

Instantly share code, notes, and snippets.

@btsuhako
Created November 29, 2018 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btsuhako/097a2e0d7932cca588cfcdcdf36dbb88 to your computer and use it in GitHub Desktop.
Save btsuhako/097a2e0d7932cca588cfcdcdf36dbb88 to your computer and use it in GitHub Desktop.
Datadog Agent ECS task definition
{
"ipcMode": null,
"executionRoleArn": null,
"containerDefinitions": [
{
"dnsSearchDomains": null,
"logConfiguration": null,
"entryPoint": null,
"portMappings": [
{
"hostPort": 8126,
"protocol": "udp",
"containerPort": 8126
},
{
"hostPort": 8126,
"protocol": "tcp",
"containerPort": 8126
}
],
"command": null,
"linuxParameters": null,
"cpu": 10,
"environment": [
{
"name": "DD_API_KEY",
"value": "<MY_KEY>"
},
{
"name": "DD_APM_ENABLED",
"value": "true"
},
{
"name": "DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL",
"value": "true"
},
{
"name": "DD_LOGS_ENABLED",
"value": "true"
},
{
"name": "NON_LOCAL_TRAFFIC",
"value": "true"
},
{
"name": "SD_BACKEND",
"value": "docker"
}
],
"ulimits": null,
"dnsServers": null,
"mountPoints": [
{
"readOnly": true,
"containerPath": "/var/run/docker.sock",
"sourceVolume": "docker_sock"
},
{
"readOnly": true,
"containerPath": "/host/sys/fs/cgroup",
"sourceVolume": "cgroup"
},
{
"readOnly": true,
"containerPath": "/host/proc",
"sourceVolume": "proc"
}
],
"workingDirectory": null,
"secrets": null,
"dockerSecurityOptions": null,
"memory": 256,
"memoryReservation": null,
"volumesFrom": [],
"image": "datadog/agent:6.7.0",
"disableNetworking": null,
"interactive": null,
"healthCheck": null,
"essential": true,
"links": null,
"hostname": null,
"extraHosts": null,
"pseudoTerminal": null,
"user": null,
"readonlyRootFilesystem": null,
"dockerLabels": null,
"systemControls": null,
"privileged": null,
"name": "datadog-agent"
}
],
"placementConstraints": [],
"memory": null,
"taskRoleArn": "<MY_TASK_ROLE>",
"compatibilities": [
"EC2"
],
"taskDefinitionArn": "<MY_TASK_DEF>",
"family": "production-datadog-agent-task",
"requiresAttributes": [
{
"targetId": null,
"targetType": null,
"value": null,
"name": "com.amazonaws.ecs.capability.task-iam-role"
}
],
"pidMode": null,
"requiresCompatibilities": [],
"networkMode": null,
"cpu": null,
"revision": 5,
"status": "ACTIVE",
"volumes": [
{
"name": "docker_sock",
"host": {
"sourcePath": "/var/run/docker.sock"
},
"dockerVolumeConfiguration": null
},
{
"name": "proc",
"host": {
"sourcePath": "/proc/"
},
"dockerVolumeConfiguration": null
},
{
"name": "cgroup",
"host": {
"sourcePath": "/sys/fs/cgroup/"
},
"dockerVolumeConfiguration": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment