作成したリソースの削除を行います
As you can see it’s fairly easy to get CloudWatch Container Insights to work, and set alarms for CPU and other metrics.
With CloudWatch Container Insights we remove the need to manage and update your own monitoring infrastructure and allow you to use native AWS solutions that you don’t have to manage the platform for.
Let’s clean up Wordpress so it’s not running in your cluster any longer.
helm -n wordpress-cwi uninstall understood-zebu
kubectl delete namespace wordpress-cwi
Run the following command to delete Container Insights from your cluster.
curl -s https://raw.githubusercontent.com/aws-samples/amazon-cloudwatch-container-insights/latest/k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring/quickstart/cwagent-fluentd-quickstart.yaml | sed "s/{{cluster_name}}/eksworkshop-eksctl/;s/{{region_name}}/${AWS_REGION}/" | kubectl delete -f -
Finally we will remove the CloudWatchAgentServerPolicy policy from the Nodes IAM Role
aws iam detach-role-policy \
--policy-arn arn:aws:iam::aws:policy/CloudWatchAgentServerPolicy \
--role-name ${ROLE_NAME}
There is a lot more to learn about our Observability features using Amazon CloudWatch and AWS X-Ray. Take a look at our One Observability Workshop