1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
This commit is contained in:
kev 2015-06-24 19:51:35 +08:00
parent a9f2c479e5
commit 640535a288
2 changed files with 44 additions and 0 deletions

@ -5,6 +5,48 @@ collectd
and provides mechanisms to store the values in a variety of ways, for example
in RRD files.
## 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">
Server "influxdb" "8096"
</Plugin>
```
## docker-compose.yml
```
@ -12,5 +54,6 @@ collectd:
image: vimagick/collectd
volumes:
- ./collectd:/etc/collectd
pid: host
restart: always
```

@ -2,4 +2,5 @@ collectd:
image: vimagick/collectd
volumes:
- ./collectd:/etc/collectd
pid: host
restart: always