dedalusj / cwmonitor

Monitoring tool to collect metrics from docker and the basic host to be sent to CloudWatch metrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CloudWatch Monitor

Build Status codecov

Monitoring tool to collect basic statistics from a machine and from docker statistics and send them to CloudWatch metrics.

Available metrics for collection:

  • CPU
  • Memory
  • Swap
  • Disk
  • Docker stats
  • Docker health status

How to

Binary

Download the binary from the GitHub release.

Run it with ./cwmonitor --metrics cpu,memory --interval 60 --namespace a_namespace --hostid "$(hostname)"

Available metrics are: cpu, memory, swap, disk, docker-health, docker-stats.

Use ./cwmonitor --help to see a description of the other command line arguments. All the command line options can be set via environment variables by prefixing CWMONITOR_ to the capitalized version of the cli option, e.g. --metrics becomes CWMONITOR_METRICS.

Docker

CWMonitor is also available as a docker image and can be run with

docker run --rm --name=cwmonitor -v /var/run/docker.sock:/var/run/docker.sock \
    dedalusj/cwmonitor --metrics cpu,memory --interval 60 --namespace a_namespace --hostid "$(hostname)"

About

Monitoring tool to collect metrics from docker and the basic host to be sent to CloudWatch metrics

License:MIT License


Languages

Language:Go 93.0%Language:Shell 3.6%Language:Makefile 2.7%Language:Dockerfile 0.7%