9
pebbletech/cloudwatch-stats docker image 镜像
source link: https://hub.docker.com/r/pebbletech/cloudwatch-stats
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
docker pull pebbletech/cloudwatch-stats
# Docker Cloudwatch Stats #
Standalone container that reports current cpu/disk metrics of host EC2 instance to cloudwatch.
Server Dependencies
- Docker 1.5+
Usage
-
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'
-
Start systemd unit
systemctl start $PWD/docker-cloudwatch.service
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK