Posts memory/disk stats from host EC2 instance to Cloudwatch
10M+
Standalone container that reports current cpu/disk metrics of host EC2 instance to cloudwatch.
Create systemd unit:
[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'
Start systemd unit
systemctl start $PWD/docker-cloudwatch.service
Content type
Image
Digest
sha256:e44365383…
Size
30.2 MB
Last updated
about 10 years ago
docker pull pebbletech/cloudwatch-stats