0.1.1 • Published 5 years ago

aws-disk-monitor v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

AWS Disk Monitor

GitHub GitHub issues Travis (.org) npm npm

CLI tool for monitoring disk space and reporting details to AWS CloudWatch. EC2/EBS does not currently publish metrics on the space left on a disk and so this simple, yet useful tool will help you keep track of things. Perfect for a private package server or build server.

Prerequisites

You will need to setup your AWS Credentials for this tool to work. If you are working with AWS already, you probably already have this set up.

Install

npm install aws-disk-monitor -g

Running

aws-disk-monitor -p C:/,D:/ -n MyServer -o MatthewBill -d 60000 -r us-east-1

The above command checks two disks and sends metrics to AWS CloudWatch with the MatthewBill/Servers/MyServer namespace.

Options

OptionDescriptionDefault
-p, --paths <value>Comma separated list of disk paths. i.e.: C:/,D:/.
-o, --org <value>The organisation name used for the CloudWatch metrics namespace.
-n, --serverName <value>The name of the server the metrics are for and used for the CloudWatch metrics namespace.
-d, --delay <n>The delay in milliseconds in which to send the data continuously.60000
-r, --region <value>The AWS Region. i.e.: us-east-1.us-east-1

Metrics

NameDescription
spaceThe total size of the disk.
freeThe free space on the disk.

Namespace

The namespace is created using the following:

self.namespace = `${org}/Servers/${serverName}`;

Dimensions

The disk path is used as a dimension.

License

Copyright (c) Matthew Bill. All rights reserved.

Licensed under the MIT License.

0.1.1

5 years ago

0.1.0

5 years ago