I want to monitor memory used by particular process under cloudwatch
in AWS
. Do I have to use script to do so? If yes, let me know the steps or some guideline or Can I use cloudwatch logs
to report memory utilized by particular process in real time? Tell me the other alternatives as well.
Yes, you will need a script that runs on the instance you want to monitor. Cloudwatch by default can only report on things it can 'see' at the hypervisor level, not things that re going on 'inside', so you'll need to create and report 'custom metrics'.
Here are some Linux script pointers: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/mon-scripts.html
and some for windows: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/mon-scripts-powershell.html