Public | Automated Build

Last pushed: 4 months ago
Short Description
collectd - fork from oisis/collectd
Full Description

Collectd Docker

This repository contains Dockerfile of Collectd and other scripts
for Docker's.

Base Docker Image

Installation

  1. Install Docker.

  2. Pull image from Docker hub(https://hub.docker.com/):

docker pull puckel/docker-collectd

  1. Alternatively build an image from Dockerfile:

docker build -t oisis/collectd .

Usage

In addition with puckel/docker-graphite or tutum/influxdb, a basic collectd-based server monitoring. Sends stats to a container named "graphite", "influx" or both. You can specify your collectd hostname with "-e HOST_NAME=YOURHOSTNAME" otherwise "Hostname" in collectd.conf will be the container name :

  • Run with Graphite support:

    docker run -d --link graphite:graphite \
    --name collectd -e HOST_NAME=YOURHOSTNAME \
    -e GRAPHITE_HOST=127.0.0.1 -e GRAPHITE_PORT=2003 \
    oisis/collectd
    
  • Run with InfluxDB support:

    docker run -d --link influxdb:influxdb \
    --name collectd -e HOST_NAME=YOURHOSTNAME \
    -e INFLUXDB_HOST=127.0.0.1 -e INFLUXDB_PORT=8086 \
    oisis/collectd
    

Run with OpenTSDB support:

docker run -d --link opentsdb:opentsdb \
  --name collectd -e HOST_NAME=YOURHOSTNAME \
  -e OPENTSDB_HOST=opentsdb -e OPENTSDB_PORT=4242 \
  oisis/collectd

Supported variables:

  • HOST_NAME: Host name
  • RUN_INTERVAL: How often to run plugins
  • GRAPHITE_HOST: Graphite host address(default localhost)
  • GRAPHITE_PORT: Graphite host port (default 2003)
  • INFLUXDB_HOST: InfluxDB host address(default localhost)
  • INFLUXDB_PORT: InfluxDB host port (default 8086)
  • OPENTSDB_HOST: OpenTSDB host address(default localhost)
  • OPENTSDB_PORT: OpenTSDB host port (default 4242)
  • LOGSTASH_HOST: Logstash host address(default localhost)
  • LOGSTASH_PORT: Logstash host port (default 25826)
Docker Pull Command
Owner
funfin
Source Repository

Comments (0)