mon-put-instance-data

command module
v0.0.0-...-1289288 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 License: MIT Imports: 11 Imported by: 0

README

Docker Stars MIT License Docker Stars

Download

Below are the available downloads for the latest version of CLI (1.0.0). Please download the proper package for your operating system and architecture.

Linux:

wget https://s3.us-east-1.amazonaws.com/mon-put-instance-data/1.0.0/linux/mon-put-instance-data

Windows:

wget https://s3.us-east-1.amazonaws.com/mon-put-instance-data/1.0.0/windows/mon-put-instance-data

How to use

  • Setup an IAM Policy:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "1",
            "Effect": "Allow",
            "Action": "cloudwatch:PutMetricData",
            "Resource": "*"
        }
    ]
}
  • Start metrics collector:
mon-put-instance-data --memory --swap --disk --network --docker --duration 1

Docker

Use the official Docker image:

docker run -d -e AWS_INSTANCE_ID="" -e AWS_ACCESS_KEY_ID="" -e AWS_SECRET_ACCESS_KEY="" --name collector mlabouardy/mon-put-instance-data --memory --swap --interval 1

If you omit the AWS_INSTANCE_ID it'll get the instance id from http://169.254.169.254/latest/meta-data/instance-id

Metrics

  • Memory
    • Memory Utilization (%)
    • Memory Used (Mb)
    • Memory Available (Mb)
  • Swap
    • Swap Utilization (%)
    • Swap Used (Mb)
  • Disk
    • Disk Space Utilization (%)
    • Disk Space Used (Gb)
    • Disk Space Available (Gb)
  • Network
    • Bytes In/Out
    • Packets In/Out
    • Errors In/Out
  • Docker
    • Memory Utilization per Container
    • CPU User/System per Container

Supported AMI

  • Amazon Linux
  • Amazon Linux 2
  • Ubuntu 16.04
  • Microsoft Windows Server

Tutorial

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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