Public Repository

Last pushed: 2 years ago
Short Description
CollectD with graphite, influxdb, statsd and riemann support.
Full Description

collectd-docker

Created by @revett.

Simple CollectD instance running within a Docker container, with support to send statistics to either Graphite, Riemann or InfluxDB.

Note - also accepts traffic from StatsD clients on localhost:8125.

Setup

  1. Install Docker.
  2. Pull the latest image from the Docker registry:
docker pull revett/collectd

Usage

Start the container:

docker run -d -e CONFIG_TYPE=influxdb -e EP_HOST=example.com -e EP_PORT 2003 revett/collectd

Environment Variables

You must replace the required environment variables within the docker run command shown above:

Required:

  • CONFIG_TYPE
    • Either: graphite, riemann or influxdb
  • EP_HOST
    • IP or hostname for the endpoint.
  • EP_PORT
    • Default: 2003
    • Port for the endpoint.

Optional:

  • HOST_NAME
    • Default: collectd-docker
    • Used to create the namespace.
  • PREFIX
    • Default: local.debug
    • Used to create the namespace.
    • Graphite only.

Namespace

When viewing the metrics within Grafana via Graphite for example, they will come under the following namespace:

{{PREFIX}}.{{HOST_NAME}}.cpu-*
Docker Pull Command
Owner
revett

Comments (1)
lucasvc
2 years ago

You have a little typo on:

-e EP_PORT 2003

Should be:

-e EP_PORT=2003