Deploying Container Insights on EC2

0

Is it possible to collect container metrics in a Docker deployment made using AWS EC2 instances (not running on top of AWS ECS or EKS) with AWS container insights?

Kevin
질문됨 2달 전168회 조회
3개 답변
2

Hello,

Unfortunately, AWS Container Insights is specifically designed to work with containerized environments managed by AWS ECS or EKS. It's not directly applicable to Docker containers running on standalone EC2 instances.

Alternatives for Monitoring Docker on EC2

1.CloudWatch Agent:

  • Install the CloudWatch Agent on your EC2 instances.
  • Configure it to collect custom metrics from your Docker containers using the Metric API.
  • This approach requires manual configuration and scripting.

2.Third-Party Monitoring Tools:

  • Many third-party tools like Datadog, New Relic, Prometheus, and others offer comprehensive container monitoring capabilities.
  • These tools often provide agents that can be installed on EC2 instances to collect container metrics.

3.Docker Stats and Logging:

  • Use Docker's built-in docker stats command to monitor container resource utilization in real-time.
  • Configure Docker to log container output to files or a centralized logging service for analysis.
profile picture
전문가
답변함 2달 전
profile picture
전문가
검토됨 2달 전
profile picture
전문가
검토됨 2달 전
  • Thanks for getting back to me. I agree; insights would've been purposefully designed to help view metrics in ECS/ EKS deployed environments. We already use Cloud Watch to monitor the EC2 nodes, and it would be helpful to have some functionality to monitor the container running on top of them, too. Datadog sounds promising although Solarwinds Cloud Observability looks promising too.

1

No, AWS Container Insights is specifically designed for container environments managed by AWS ECS or EKS

profile picture
전문가
답변함 2달 전
  • Thanks for getting back to me

1

I will say the opposite...

Yes, it is possible to collect container metrics from a Docker deployment on AWS EC2 instances (not using AWS ECS or EKS) with AWS Container Insights. You can achieve this by deploying the CloudWatch agent and configuring it to collect Docker container metrics.

profile picture
전문가
답변함 2달 전
  • Thanks for getting back. I suppose that's a good way to get around having to redeploy my design on ECS. Would you happen to have any resources I could follow to better help me with this?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠