Is it possible to get a list of running processes with a Cloudwatch Alarm

amazon-cloudwatchamazon-web-servicescentral-processing-unit

We have an EC2 instance (Ubuntu) that has a few java-based applications and lately we're getting hit with high CPU utilization spikes that trigger one of our Cloudwatch alarms. By the time we get into the server to look at the cpu utilization, things have calmed down.

What we'd love to see in one of the alarm emails is a list of running processes and their cpu utilization(%) at the time of the alarm. Is this even possible?

Best Answer

To answer your question no. You cannot configure CloudWatch to list the processes on your server whenever a threshold is reached. You'd have to use some other software to accomplish this. CloudWatch only records metrics, for example if you wanted to know how many processes were running then you could configure CloudWatch to monitor that.