Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I monitor memory used by specific process in AWS cloudwatch?

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.

like image 645
Nikunj Shukla Avatar asked Dec 18 '14 08:12

Nikunj Shukla


1 Answers

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

like image 170
E.J. Brennan Avatar answered Oct 14 '22 10:10

E.J. Brennan