• Stars
    star
    251
  • Rank 155,794 (Top 4 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created about 9 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A server that accepts collectd stats via HTTP POST and exports them via HTTP for Prometheus consumption

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"

TLS and basic authentication

The collectd_exporter supports TLS and basic authentication. To use TLS and/or basic authentication, you need to pass a configuration file using the --web.config.file parameter. The format of the file is described in the exporter-toolkit repository.

More Repositories

1

prometheus

The Prometheus monitoring system and time series database.
Go
52,273
star
2

node_exporter

Exporter for machine metrics
Go
10,062
star
3

alertmanager

Prometheus Alertmanager
Go
6,196
star
4

client_golang

Prometheus instrumentation library for Go applications
Go
5,113
star
5

blackbox_exporter

Blackbox prober exporter
Go
4,198
star
6

client_python

Prometheus instrumentation library for Python applications
Python
3,726
star
7

jmx_exporter

A process for exposing JMX Beans via HTTP for Prometheus consumption
Java
2,866
star
8

pushgateway

Push acceptor for ephemeral and batch jobs.
Go
2,836
star
9

client_java

Prometheus instrumentation library for JVM applications
Java
2,116
star
10

mysqld_exporter

Exporter for MySQL server metrics
Go
1,976
star
11

snmp_exporter

SNMP Exporter for Prometheus
Go
1,489
star
12

statsd_exporter

StatsD to Prometheus metrics exporter
Go
884
star
13

cloudwatch_exporter

Metrics exporter for Amazon AWS CloudWatch
Java
854
star
14

procfs

procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.
Go
732
star
15

docs

Prometheus documentation: content and static site generator
SCSS
619
star
16

haproxy_exporter

Simple server that scrapes HAProxy stats and exports them via HTTP for Prometheus consumption
Go
607
star
17

promlens

PromLens – The query builder, analyzer, and explainer for PromQL
TypeScript
507
star
18

client_ruby

Prometheus instrumentation library for Ruby applications
Ruby
499
star
19

consul_exporter

Exporter for Consul metrics
Go
419
star
20

client_rust

Prometheus / OpenMetrics client library in Rust
Rust
407
star
21

prom2json

A tool to scrape a Prometheus client and dump the result as JSON.
Go
336
star
22

graphite_exporter

Server that accepts metrics via the Graphite protocol and exports them as Prometheus metrics
Go
330
star
23

promu

Prometheus Utility Tool
Go
255
star
24

common

Go libraries shared across Prometheus components and libraries.
Go
250
star
25

influxdb_exporter

A server that accepts InfluxDB metrics via the HTTP API and exports them via HTTP for Prometheus consumption
Go
248
star
26

exporter-toolkit

Utility package to build exporters
Go
237
star
27

memcached_exporter

Exports metrics from memcached servers for consumption by Prometheus.
Go
176
star
28

test-infra

Prometheus E2E benchmarking tool
Go
147
star
29

compliance

A set of tests to check compliance with various Prometheus interfaces
Go
120
star
30

nagios_plugins

Nagios plugins for alerting on Prometheus query results
Shell
103
star
31

demo-site

Demo site auto-deployed with Ansible and Travis CI.
HTML
93
star
32

client_model

Data model artifacts for Prometheus.
Makefile
70
star
33

golang-builder

Prometheus Golang builder Docker images
Shell
69
star
34

codemirror-promql

PromQL support for the CodeMirror code editor
TypeScript
37
star
35

busybox

Prometheus Busybox Docker base images
Makefile
37
star
36

prometheus_api_client_ruby

A Ruby library for reading metrics stored on a Prometheus server
Ruby
34
star
37

talks

Track Prometheus talks
20
star
38

lezer-promql

A lezer-based PromQL grammar
JavaScript
11
star
39

circleci

8
star
40

host_exporter

See the "node_exporter" repository instead!
8
star
41

proposals

Design documents for Prometheus Ecosystem
Makefile
7
star
42

snmp_exporter_mibs

4
star
43

promci

GitHub Actions repository
4
star
44

kube-demo-site

Kubernetes Demo Site
Go
1
star