collectd container to collect metrics and forward them to Cloudwatch.
2.4K
collectd container to collect metrics and currently forwards them to Cloudwatch only. Currently you can reference any or all of these plugins(below) in the PLUGINS environment variable for they container to collect and forward those metrics to Cloudwatch.
EC2 instance need role with permissions to right to Cloudwatch ElasticSearch Cluster name is assumed to be elasticsearch below(change to yours, if different). This will send metrics for cpu, df, disk, elasticsearch, memroy and swap to cloudwatch.
sudo docker run -d \
--name=collectd \
--privileged \
--net=host \
-v /etc/hostname:/mnt/hostname:ro \
-v /proc:/mnt/proc:ro \
-v /:/hostfs:ro \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /etc:/mnt/etc:ro \
-e ES_CLUSTER=elasticsearch \
-e PLUGINS="cpu,df,disk,elasticsearch,memory,swap" \
sungardas/collectd-docker:latest
or
sudo docker-compose up -d
docker logs collectd
docker exec -it collectd bash
docker build build -t sungardas/collectd-docker .
To change any of the values, you will need to update the conf.tmpl files to allow for it.
Example: add java. copy an existing toml & tmpl, like plugin.cpu.conf.tmpl and plugin.cpu.conf.toml, and rename those copies to plugin.java.conf.tmpl and plugin.java.conf.toml. Change contents accordingly to fit what you are intending. Then add java into collectd.conf.tmpl and cloudwatch-whitelist.conf.tmpl. That is all that is needed to enable another plugin that is already included with collectd, that I have not included here yet.
cpu-.*
df-hostfs-data-df_complex-free
df-hostfs-data-df_complex-reserved
df-hostfs-data-df_complex-used
df-hostfs-data-percent_bytes-free
df-hostfs-data-percent_bytes-reserved
df-hostfs-data-percent_bytes-used
df-root-df_complex-free
df-root-df_complex-used
df-root-df_complex-reserved
df-root-percent_bytes-reserved
df-root-percent_bytes-free
df-root-percent_bytes-used
df-hostfs-df_complex-free
df-hostfs-df_complex-reserved
df-hostfs-df_complex-used
disk-xvd.*
elasticsearch-.*
memory--memory-used
memory--memory-buffered
memory--memory-cached
memory--memory-free
swap--swap-used
swap--swap-free
swap--swap-cached
Apache-2.0 ©
This project is maintained by the Labs team at Sungard Availability Services
GitHub: https://sungardas.github.io
Content type
Image
Digest
Size
93.6 MB
Last updated
over 9 years ago
docker pull sungardas/collectd-docker