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?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则