docker network create -d overlay collectd
docker service create --name cagent --mode global \
--network collectd \
--env GRAPHITE_SERVER=graphite \
--env PLUGINS="docker write_graphite" \
--label service_name="docker-statistics" \
--mount type=volume,source=COLLECTD_AGENT,target=/DATA,volume-driver=local \
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
--mount type=bind,src=/etc/timezone,dst=/etc/timezone,readonly \
--mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \
frjaraur/collectd agent
using --mount type=bind,src=/etc/hostname,dst=/etc/hostname,readonly ##
docker service create --name chost --mode global \
--network collectd \
--env GRAPHITE_SERVER=graphite \
--env PLUGINS="load memory write_graphite" \
--label service_name="docker-statistics" \
--mount type=volume,source=COLLECTD_AGENT,target=/DATA,volume-driver=local \
--mount type=bind,src=/etc/timezone,dst=/etc/timezone,readonly \
--mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \
--mount type=bind,src=/etc/hostname,dst=/etc/hostname,readonly \
frjaraur/collectd host
docker service create --name graphite \
--network collectd \
--publish 8080:80 --env RRDDIR=/DATA/collectd/rrd \
--label service_name="Graphite" \
--mount type=volume,source=GRAPHITE,target=/var/lib/graphite/storage/whisper,volume-driver=local \
--mount type=bind,src=/etc/timezone,dst=/etc/timezone,readonly \
--mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \
frjaraur/graphite start
docker service create --name stress frjaraur/stress --cpu 1 --io 2 --vm 1 --vm-bytes 256M
Content type
Image
Digest
Size
27.6 MB
Last updated
almost 8 years ago
docker pull frjaraur/collectd