Esta página aún no está disponible en español. Estamos trabajando en su traducción. Si tienes alguna pregunta o comentario sobre nuestro actual proyecto de traducción, no dudes en ponerte en contacto con nosotros.
To monitor your ECS Managed Instances tasks with Datadog, run the Datadog Agent as a container in same task definition as your application container. When a Datadog Agent is run as an additional container within an ECS task definition, the Agent can use the task’s metadata endpoint to collect data. This endpoint returns a Docker stats JSON for all containers associated with the task.
For more information about the collected Docker stats, see Docker API: ContainerStats in the Docker documentation.
Docker labels are not supported for ECS Managed Instances. To provide a custom integration configuration, you must mount a configuration file directly onto the Datadog Agent container.
Example: Setting up a Datadog Agent with custom configuration files mounted
Create the following file structure:
|- datadog
|- Dockerfile
|- conf.d
|-redis.yaml
The redis.yaml file contains the configurations for the Redis integration.
The setup for log collection is identical to the setup for log collection in ECS Fargate. Follow the instructions in the ECS Fargate documentation. These instructions give you the option to use either AWS FireLens in combination with Datadog’s Fluent Bit output plugin, or the awslogs log driver.
Process collection
You can monitor processes in ECS Managed Instances in Datadog by using the Live Processes page. To enable process collection, add the PidMode parameter in the task definition and set it to task as follows: