Sign inSign up

pebbletech/cloudwatch-stats

By pebbletech

Updated about 10 years ago

Posts memory/disk stats from host EC2 instance to Cloudwatch

Image
3

10M+

pebbletech/cloudwatch-stats repository overview

Docker Cloudwatch Stats

Standalone container that reports current cpu/disk metrics of host EC2 instance to cloudwatch.

Server Dependencies

  • Docker 1.5+

Usage

  1. Create systemd unit:

    docker-cloudwatch.service
    [Unit]
    Description=someapp cloudwatch stats
    After=docker.service
    Requires=docker.service
    
    [Service]
    TimeoutStartSec=0
    ExecStartPre=-/usr/bin/docker kill cloudwatch-stats
    ExecStartPre=-/usr/bin/docker rm cloudwatch-stats
    ExecStartPre=-/usr/bin/docker pull pebbletech/cloudwatch-stats
    ExecStart=/bin/sh -c '/usr/bin/docker run -e ASG=$(source /etc/profile; fleetctl list-machines -l | grep $(cat /etc/machine-id) | sed 's/.*service=//g') pebbletech/cloudwatch-stats'
    
  2. Start systemd unit

    systemctl start $PWD/docker-cloudwatch.service
    

Tag summary

Content type

Image

Digest

sha256:e44365383

Size

30.2 MB

Last updated

about 10 years ago

docker pull pebbletech/cloudwatch-stats