mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
add collectd
This commit is contained in:
parent
0d4780b70d
commit
4c1998e541
13
collectd/Dockerfile
Normal file
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
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
|
||||
```
|
14
collectd/collectd/collectd.conf
Normal file
14
collectd/collectd/collectd.conf
Normal 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"
|
5
collectd/collectd/conf.d/network.conf
Normal file
5
collectd/collectd/conf.d/network.conf
Normal file
@ -0,0 +1,5 @@
|
||||
LoadPlugin network
|
||||
|
||||
<Plugin "network">
|
||||
Server "influxdb" "8096"
|
||||
</Plugin>
|
5
collectd/docker-compose.yml
Normal file
5
collectd/docker-compose.yml
Normal file
@ -0,0 +1,5 @@
|
||||
collectd:
|
||||
image: vimagick/collectd
|
||||
volumes:
|
||||
- /proc:/proc:ro
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user