- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
The Datadog Agent can create and assign tags to all metrics, traces, and logs emitted by a container based on its labels or environment variables.
The Agent can autodiscover and attach tags to all data emitted by the entire task or an individual container within this task. The list of tags attached automatically depends on the agent cardinality configuration.
Tag | Cardinality | Source |
---|---|---|
container_name | High | Docker |
container_id | High | Docker |
docker_image | Low | Docker |
image_name | Low | Docker |
short_image | Low | Docker |
image_tag | Low | Docker |
ecs_cluster_name | Low | ECS API |
ecs_container_name | Low | ECS API |
task_arn | Orchestrator | ECS API |
task_family | Low | ECS API |
task_name | Low | ECS API |
task_version | Low | ECS API |
As a best practice in containerized environments, Datadog recommends using unified service tagging when assigning tags. Unified service tagging ties Datadog telemetry together through the use of three standard tags: env
, service
, and version
. To learn how to configure your environment with unified tagging, see the Amazon ECS unified service tagging documentation.
If you do not have unified service tagging enabled, complete the following steps to collect ECS resource tags:
Verify your Amazon ECS container instances are associated with an IAM role. This can be done when creating a new cluster with the ECS cluster creation wizard or in the launch configuration used by an autoscaling group.
Update the IAM role used by your Amazon ECS container instances with: ecs:ListTagsForResource
.
Update your datadog-agent-ecs.json file (datadog-agent-ecs1.json if you are using an original Amazon Linux AMI) to enable resource tag collection by adding the following environment variable:
{
"name": "DD_ECS_COLLECT_RESOURCE_TAGS_EC2",
"value": "true"
}
tasks
, services
, and container instances
ECS resources.