Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.2 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.2 KB

AWS CloudWatch Monitoring Program

Put Linux System metrics to AWS CloudWatch

Memory

  • Memory Utilization - Memory usage in percent
  • Memory Used - Used memory in bytes
  • Memory Available - Available memory in bytes
  • Swap Utilization - Swap usage in percent
  • Swap Used - Swap used in bytes

Disk

  • Disk Space Utilization - Disk space usage in percent
  • Disk Space Used - Disk space used in bytes
  • Disk Space Available - Disk space available in bytes
  • Linux partition inode usage - Disk parttion inodes usage in percent

Usage

  • You need to config you aws credential before run the program
  • Run the program as following for full metrics push
go-aws-mon --namespace=<NAMESPACE> --mem-util --mem-used --mem-avail --swap-util --swap-used  --disk-space-util --disk-inode-util --disk-space-used --disk-space-avail --disk-path=PATH

PATH, multiple paths are supported by comma(,) saperate, e.x. /,/var,/home

  • By default, the CloudWatch namespace is "Linux/System" and Memory Utilization and / Disk Utilization are always push
  • We recommend to change the bin/mon-put-instance-metric.sh to setup a cron job

Allen Chen(a3linux X gmail.com)