Sign inSign up

miovision/ecs-datadog

By miovision

•Updated about 7 years ago

Datadog for AWS ECS

Image
0

523

miovision/ecs-datadog repository overview

⁠docker-ecs-datadog

Datadog agent for ECS

This container has a simple entrypoint that queries the amazon task definition that it belongs to and adds all of the tags for the task to the DD_TAGS environment variable. This makes keeping track of logs and metrics in a multi- environment cluster easy.

Below is an example container definition from an ecs task definition. This container will capture all stdout logs from containers running.

{
  "name": "datadog",
  "image": "miovision/ecs-datadog:0.0.0",
  "hostname": "dd-agent",
  "secrets": [
    {
        "name": "DD_API_KEY",
        "valueFrom": "/tfvars/datadog/api_key"
    }
  ],
  "environment": [
    {
      "name": "DD_LOGS_ENABLED",
      "value": "true"
    },
    {
      "name": "DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL",
      "value": "true"
    },
    {
      "name": "DD_DOGSTATSD_NON_LOCAL_TRAFFIC",
      "value": "true"
    }
  ],
  "memory": 512,
  "mountPoints": [
    {
      "sourceVolume": "docker_sock",
      "containerPath": "/var/run/docker.sock",
      "readOnly": false
    }
  ]
}

For the above to function correctly ensure you include a volume section with the following volume

{
  "name": "docker_sock",
  "host": {
    "sourcePath": "/var/run/docker.sock"
  }
}

Tag summary

Content type

Image

Digest

Size

152.2 MB

Last updated

about 7 years ago

docker pull miovision/ecs-datadog