Git Product home page Git Product logo

collectd_exporter's Introduction

Collectd Exporter Build Status

CircleCI Docker Repository on Quay Docker Pulls

An exporter for collectd. It accepts collectd's binary network protocol as sent by collectd's network plugin and metrics in JSON format via HTTP POST as sent by collectd's write_http plugin, and transforms and exposes them for consumption by Prometheus.

This exporter is useful for exporting metrics from existing collectd setups, as well as for metrics which are not covered by the core Prometheus exporters such as the Node Exporter.

Binary network protocol

collectd's network plugin uses a lightweight binary protocol to send metrics from one instance to another. To consume these packets with collectd_exporter, first configure collectd to send these metrics to the appropriate address:

LoadPlugin network
<Plugin network>
  Server "prometheus.example.com" "25826"
</Plugin>

Then start collectd_exporter with --collectd.listen-address=":25826" to start consuming and exporting these metrics.

JSON format

collectd's write_http plugin is able to send metrics via HTTP POST requests. collectd_exporter serves an appropriate end-point which accepts, parses and exports the metrics. First, configure collectd to send these metrics to the HTTP end-point:

LoadPlugin write_http
<Plugin write_http>
  <Node "collectd_exporter">
    URL "http://localhost:9103/collectd-post"
    Format "JSON"
    StoreRates false
  </Node>
</Plugin>

To change the path of the end-point, use the --web.collectd-push-path command line option. To disable this functionality altogether, use --web.collectd-push-path="".

Using Docker

You can deploy this exporter using the prom/collectd-exporter Docker image. You will need to map the collectd port from the container to the host, remembering that this is a UDP port.

For example:

docker pull prom/collectd-exporter

docker run -d -p 9103:9103 -p 25826:25826/udp prom/collectd-exporter --collectd.listen-address=":25826"

collectd_exporter's People

Contributors

beorn7 avatar brandonweeks avatar brian-brazil avatar carlpett avatar discordianfish avatar fabxc avatar gambol99 avatar grobie avatar hasso avatar infra-red avatar iwinux avatar juliusv avatar kormat avatar lig avatar m42u avatar octo avatar prombot avatar roidelapluie avatar sdurrheimer avatar simonpasquier avatar stuartnelson3 avatar superq avatar tclavier avatar vitt-bagal avatar

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.