Giter VIP home page Giter VIP logo

collectd-docker-plugin's Introduction

collectd-docker-plugin

Build Status

Collectd plugin to tap in the Docker Stats streaming API using Collectd's Exec plugin. Built with Go 1.7 and tested with Collectd 5.5 and Influx 1.0.

Installation

Example installation for a Ubuntu system. Make changes required to match your own OS.

curl -Ls "https://github.com/dustinblackman/collectd-docker-plugin/releases/download/0.3.0/collectd-docker-plugin-linux-amd64-0.3.0.tar.gz" | tar xz -C /usr/local/bin/
curl -o /usr/share/collectd https://raw.githubusercontent.com/dustinblackman/collectd-docker-plugin/master/collectd/docker.db
curl -o /etc/collectd/collectd.conf.d https://raw.githubusercontent.com/dustinblackman/collectd-docker-plugin/master/collectd/docker.conf
usermod -a -G docker nobody
service collectd restart

Parameters

Parameters are available and can be added by modifying docker.conf and appending parameters to the exec function.

  • -d, --docker-host - Docker socket path. Defaults to unix:///var/run/docker.sock
  • -de, --docker-environment - Boolean parameter to specifiy reading Docker parameters from environment variables
  • -ch, --collectd-hostname - Collectd hostname. This is automatically provided to the process from Collectd.
  • -w, --wait-time - Delay in seconds with how often metrics are submitted to Collectd. If wait time is set to 1, it will use Docker Stats API streaming, otherwise it polls. Defaults to 5.

Build From Source

Tested with Go 1.7. Versioning is done with Glide. The makefile will take care of installing it for you incase you don't have it.

git pull https://github.com/dustinblackman/collectd-docker-plugin
cd collectd-docker-plugin
make install

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.