Skip to content

rhockenbury/docker-collectd-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-collectd-plugin

Collectd configured to fetch running docker container stats using the stats endpoint introduced in Docker1.5.

The collectd python plugin is used to run a script that communicates with the machine's docker daemon.

A Docker plugin for collectd using docker-py and collectd's Python plugin.

This uses the new stats API (moby/moby#9984) introduced by Docker 1.5

  • Network bandwidth
  • Memory usage
  • CPU usage
  • Block IO

Install

  1. Place dockerplugin.py and dockerplugin.db in /usr/share/collectd (this is only an example).
  2. Configure the plugin (see below).
  3. Restart collectd.

Configuration

Add the following to your collectd config:

TypesDB "/usr/share/collectd/dockerplugin.db"
LoadPlugin python

<Plugin python>
  ModulePath "/usr/share/collectd"
  Import "dockerplugin"

  <Module dockerplugin>
    BaseURL "unix://var/run/docker.sock"
  </Module>
</Plugin>

Requirements

  • docker-py
  • python-dateutil
  • docker 1.5+

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%