/cwmonitor

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

Primary LanguageGoMIT LicenseMIT

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)"