diff --git a/collectd/README.md b/collectd/README.md index 69cd7ac..c87c851 100644 --- a/collectd/README.md +++ b/collectd/README.md @@ -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 + + + Server "influxdb" "8096" + +``` + ## docker-compose.yml ``` @@ -12,5 +54,6 @@ collectd: image: vimagick/collectd volumes: - ./collectd:/etc/collectd + pid: host restart: always ``` diff --git a/collectd/docker-compose.yml b/collectd/docker-compose.yml index cf3d485..80fcdbb 100644 --- a/collectd/docker-compose.yml +++ b/collectd/docker-compose.yml @@ -2,4 +2,5 @@ collectd: image: vimagick/collectd volumes: - ./collectd:/etc/collectd + pid: host restart: always