1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/collectd/README.md

61 lines
872 B
Markdown
Raw Normal View History

2015-06-24 10:48:29 +00: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 11:51:35 +00: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 12:43:07 +00:00
Server "influxdb" "25826"
2015-06-24 11:51:35 +00:00
</Plugin>
```
2015-06-24 10:48:29 +00:00
## docker-compose.yml
```
collectd:
image: vimagick/collectd
volumes:
2015-06-24 11:23:22 +00:00
- ./collectd:/etc/collectd
2015-06-24 11:51:35 +00:00
pid: host
2015-06-24 14:43:17 +00:00
net: host
2015-06-24 10:48:29 +00:00
restart: always
```