1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/collectd/README.md

61 lines
872 B
Markdown
Raw Normal View History

2015-06-24 12:48:29 +02:00
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.
2015-06-24 13:51:35 +02:00
## directory tree
```
~/fig/collectd/
├── collectd/
│   ├── collectd.conf
│   └── conf.d/
│   └── network.conf
└── docker-compose.yml
```
## config files
collectd.conf
```
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"
```
network.conf
```
LoadPlugin network
<Plugin "network">
2015-06-24 14:43:07 +02:00
Server "influxdb" "25826"
2015-06-24 13:51:35 +02:00
</Plugin>
```
2015-06-24 12:48:29 +02:00
## docker-compose.yml
```
collectd:
image: vimagick/collectd
volumes:
2015-06-24 13:23:22 +02:00
- ./collectd:/etc/collectd
2015-06-24 13:51:35 +02:00
pid: host
2015-06-24 16:43:17 +02:00
net: host
2015-06-24 12:48:29 +02:00
restart: always
```