1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00

add collectd

This commit is contained in:
kev 2015-06-24 18:48:29 +08:00
parent 0d4780b70d
commit 4c1998e541
5 changed files with 53 additions and 0 deletions

13
collectd/Dockerfile Normal file

@ -0,0 +1,13 @@
#
# Dockerfile for collectd
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
RUN apk add -U collectd \
&& rm -rf /var/cache/apk/*
COPY ./collectd /etc/collectd
CMD ["collectd", "-f", "-C", "/etc/collectd/collectd.conf"]

16
collectd/README.md Normal file

@ -0,0 +1,16 @@
collectd
========
`collectd` is a daemon which collects system performance statistics periodically
and provides mechanisms to store the values in a variety of ways, for example
in RRD files.
## docker-compose.yml
```
collectd:
image: vimagick/collectd
volumes:
- /proc:/proc:ro
restart: always
```

@ -0,0 +1,14 @@
Hostname "localhost"
FQDNLookup false
Interval 10
Timeout 2
ReadThreads 5
WriteThreads 5
LoadPlugin cpu
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
Include "/etc/collectd/conf.d/*.conf"

@ -0,0 +1,5 @@
LoadPlugin network
<Plugin "network">
Server "influxdb" "8096"
</Plugin>

@ -0,0 +1,5 @@
collectd:
image: vimagick/collectd
volumes:
- /proc:/proc:ro
restart: always