A custom metric with dimensions for monitoring the instance health and passenger process in CloudWatch

A custom metric with dimensions for monitoring the instance health and passenger process in CloudWatch

Here, I have created a custom metric which will monitor a live status of the instance on AWS which include:-

  1. CPU STATUS
  2. MEMORY CONSUMPTION
  3. PASSENGER PROCESS
  4. REQUEST IN QUEUE ( PASSENGER )

No, hardcoded variables values are defined.

Below script is independent of Linux os and can directly be used for monitoring purpose.

You just need to execute the code it will start running in the background and will send an update to AWS in every second or you can use crontab, init.d or systemd for running the script in the boot process of an instance.

Note:

Few of the variables are extra defined you can later modify and use it according to your requirements.

Sleep time could be modified to 1m in script or adjust according to your taste (use sec, min, hr for defining the time).

ASKOPS APP IS NOW AVAILABLE ON PLAYSTORE.

Askops
Askops
Developer: Nikhil raj
Price: Free

Leave a Reply