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:
Then just grab latest src and make.