Skip to content

shastah/collectd-lxc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 

Repository files navigation

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>

About

Collectd metrics of lxc container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%