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. ## directory tree ``` ~/fig/collectd/ ├── data/ │   ├── collectd.conf │   └── conf.d/ │   └── network.conf └── docker-compose.yml ``` ## config files collectd.conf ```apache 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 ```apache LoadPlugin network Server "influxdb" "25826" ``` weather.conf ```apache LoadPlugin curl_json Instance "Beijing" Type "gauge" Instance "Shanghai" Type "gauge" Instance "Silicon_Valley" Type "gauge" ``` ## docker-compose.yml ``` collectd: image: vimagick/collectd volumes: - ./data:/etc/collectd pid: host net: host restart: always ```