Prerequisite
- 신규 및 기존 ECS Cluster에서 Container Insights 설정을 할 수 있으나, 기존 Cluster의 경우 AWS CLI를 통해서만 활성화를 할 수 있습니다.
- 모든 새 클러스터에 Container Insights를 기본적으로 활성화하려면 아래의 명령어를 실행하면 됩니다.
아래의 명령어를 실행할 경우, ECS-Account Settings의 "CloudWatch Container Insights"가 활성화 됩니다. (Console에서도 직접 활성화할 수 있습니다.)
-
-
aws ecs put-account-setting --name "containerInsights" --value "enabled"
- 기본적으로 활성화되어 있지 않고, Cluster 단위로 활성화를 하고 싶을 경우, 아래와 같이 AWS CLI를 통해 설정이 가능합니다.
-
Process
-
기존 Amazon ECS 클러스터에서 Container Insights 설정
-
aws ecs update-cluster-settings --cluster myCICluster --settings name=containerInsights,value=enabled
-
-
신규 Amazon ECS 클러스터를 생성하면서 Container Insights 설정
-
aws ecs create-cluster --cluster-name myCICluster --settings "name=containerInsights,value=enabled"
-
-
Amazon ECS 클러스터에서 Container Insights 사용 중지
-
aws ecs update-cluster-settings --cluster myCICluster --settings name=containerInsights,value=disabled
-
Reference
- https://docs.aws.amazon.com/ko_kr/AmazonCloudWatch/latest/monitoring/deploy-container-insights-ECS-cluster.html (클러스터 및 서비스 수준 지표를 위해 Amazon ECS에서 Container Insights 설정)
댓글
댓글 0개
댓글을 남기려면 로그인하세요.