In a AWS ECS cluster each cluster instance runs the ecs-agent [1] as a docker container. Next to that container I run datadog-agent [2] also as a container. The datadog-agent monitors all other containers and ship their logs to DataDog. In order to have the log of each container tagged by name I've added a specific docker label [3] to each container with the respective name. However, I'm not been able to add a docker label to the ecs-agent itself.
Is there a way to add custom docker labels to the ecs-agent container?
[1] - https://github.com/aws/amazon-ecs-agent
[2] - https://github.com/DataDog/datadog-agent
[3] - https://docs.datadoghq.com/logs/log_collection/docker/