Skip to content

Sends MemAvailable from /proc/meminfo to CloudWatch using instance's IAM role

License

Notifications You must be signed in to change notification settings

AdamantGarth/ec2_mem_monitoring

Repository files navigation

ec2_mem_monitoring

Sends MemAvailable statistic to CloudWatch using instance's IAM role.

Optionally, can monitor available disk space as well. To enable the feature, run the tool with MONITOR_DISK environment variable set to the path on the disk that you want to monitor. To monitor root partition, for example:

MONITOR_DISK=/ ./ec2_mem_monitoring

To install run:

curl -sL https://github.com/AdamantGarth/ec2_mem_monitoring/releases/latest/download/ec2_mem_monitoring.tar.gz | sudo tar -xzC /usr/local --exclude='*.d'
sudo systemctl enable --now ec2_mem_monitoring

With root partition disk space monitoring enabled:

curl -sL https://github.com/AdamantGarth/ec2_mem_monitoring/releases/latest/download/ec2_mem_monitoring.tar.gz | sudo tar -xzC /usr/local
sudo systemctl enable --now ec2_mem_monitoring

Note: instance must have an IAM account connected, with cloudwatch:PutMetricData permissions.

About

Sends MemAvailable from /proc/meminfo to CloudWatch using instance's IAM role

Resources

License

Stars

Watchers

Forks

Packages

No packages published