aws-samples / amazon-cloudwatch-container-insights

CloudWatch Agent Dockerfile and K8s YAML templates for CloudWatch Container Insights.
MIT No Attribution
162 stars 106 forks source link

updates for enhanced container insights #148

Closed chadpatel closed 11 months ago

chadpatel commented 11 months ago

Issue

Description of changes:

  1. update image to the currently released version. We need to pin and not use the latest because kubernetes will not cache the latest image which results in scale issues in clusters that are creating a lot of pods
  2. update samples to enable enhanced by default
  3. increase mem/cpu limits for enhanced

Testing

I set up a new cluster using this guide https://docs.aws.amazon.com/eks/latest/userguide/getting-started-eksctl.html

And I deployed the modified cwagent-fluent-bit-quickstart.yaml with this example https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-setup-EKS-quickstart.html

Data is flowing: Screenshot 2023-09-29 at 3 24 49 PM

Pods are running:

➜  amazon-cloudwatch-container-insights git:(enhanced-ci) kubectl get pods --all-namespaces
NAMESPACE           NAME                       READY   STATUS    RESTARTS   AGE
amazon-cloudwatch   cloudwatch-agent-48zg5     1/1     Running   0          4m26s
amazon-cloudwatch   cloudwatch-agent-dzztp     1/1     Running   0          4m26s
amazon-cloudwatch   fluent-bit-bh62k           1/1     Running   0          4m25s
amazon-cloudwatch   fluent-bit-gsvrz           1/1     Running   0          4m25s

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.