ec2_mem_monitoring

command module
v0.0.0-...-906bca3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL