Using ELK Stack with Collectd

Collectd is a daemon that can be configured to collect metrics from various source plugins, such as Logstash. As compared to Logstash, Collectd is very lightweight and portable, but it does not generate graphs. It can write to RRD files, though, that need a RRDTool (https://en.wikipedia.org/wiki/RRDtool) to read them and generate graphs to visualize the logged data. On the other hand, since Collectd is written in C programming language (https://en.wikipedia.org/wiki/C_(programming_language)), it is also possible to use it to collect metrics from embedded systems as well.

Collectd needs to be built from source. First, download the Collectd 5.8.0 version and extract the same:

# download Collectd 5.8.0 tar% wget ...

Get Microservices with Clojure now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.