Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 727 Bytes

readme.md

File metadata and controls

32 lines (27 loc) · 727 Bytes

lxc collectd plugin

features

  • privileged and unprivileged container
  • cpu metric
  • memory metric
  • network metric

Installation

  • sudo pip install -r requirements.txt --upgrade
  • copy "collectd_lxc.py" in a directory (exemple: /etc/collectd/plugins/)
  • Configure collectd, create file /etc/collectd/collectd.conf.d/lxc.conf with content
LoadPlugin python
<Plugin python>
    ModulePath "/etc/collectd/plugins/"
    LogTraces true
    Interactive false
    Import "collectd_lxc"
    <Module collectd_lxc>
        Separator "_"
        DSname "lxc" "%USERID%" "%CONTAINER%"
        CollectBlkio true
        CollectCpu true
        CollectMemory true
        CollectNet true
    </Module>
</Plugin>