diff --git a/static/json/datadog-agent-ecs.json b/static/json/datadog-agent-ecs.json index d313d99acf0..261c44cb1bd 100644 --- a/static/json/datadog-agent-ecs.json +++ b/static/json/datadog-agent-ecs.json @@ -50,7 +50,7 @@ }, { "host": { - "sourcePath": "/cgroup/" + "sourcePath": "/sys/fs/cgroup/" }, "name": "cgroup" } diff --git a/static/json/datadog-agent-ecs1.json b/static/json/datadog-agent-ecs1.json new file mode 100644 index 00000000000..d313d99acf0 --- /dev/null +++ b/static/json/datadog-agent-ecs1.json @@ -0,0 +1,59 @@ +{ + "containerDefinitions": [ + { + "name": "datadog-agent", + "image": "datadog/agent:latest", + "cpu": 10, + "memory": 256, + "essential": true, + "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": "INSERT_API_KEY" + }, + { + "name": "SD_BACKEND", + "value": "docker" + } + ] + } + ], + "volumes": [ + { + "host": { + "sourcePath": "/var/run/docker.sock" + }, + "name": "docker_sock" + }, + { + "host": { + "sourcePath": "/proc/" + }, + "name": "proc" + }, + { + "host": { + "sourcePath": "/cgroup/" + }, + "name": "cgroup" + } + ], + "family": "datadog-agent-task" +}