Issue
I have an Ubuntu instance running on EC2 set up with Cloudwatch. I'm successfully sending memory statistics with my setup so I know it's working.
What I want to do now is send stats about the containers running on the Ubuntu docker instance to CloudWatch but I'm not finding any resources on how to define these custom metrics in the config file.
/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json
Like sending the docker ps -a
table or the docker stats
output to CloudWatch.
Much appreciated
Solution
I would suggest you refer to custom metrics from an EC2 Linux instance to CloudWatch document from AWS.
Answered By - amitd