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
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
LoadPlugin network <Plugin network> Server "prometheus.example.com" "25826" </Plugin>
Then start collectd_exporter with
start consuming and exporting these metrics.
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
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
line option. To disable this functionality altogether, use
You can deploy this exporter using the prom/collectd-exporter Docker image.
docker pull prom/collectd-exporter docker run -d -p 9103:9103 prom/collectd-exporter