Collectd & Prometheus on Centos 7.md

06 Jul 2021

Centos 7 is too old so while you need collectd with plugin write metrics to Prometheus, no way you can do that on current packages. First, it’s a bug with collectd older than 5.12 and all you have to do is to build the package your self.

To build with flag –enable-write_prometheus, you must get two dependencies packages:

yum install protobuf-c-devel libmicrohttpd-devel

Then just grab latest src and make.