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
demandé il y a 2 mois168 vues
3 réponses
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
EXPERT
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
  • 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
EXPERT
répondu il y a 2 mois
  • 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
EXPERT
répondu il y a 2 mois
  • 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?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions