1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02: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
View 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
View 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
```

View File

@ -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"

View File

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

View File

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