Hi,
On 3/31/20 12:22 PM, Yagyansh S. Kumar wrote:
> Hi. We have systemd collector in Prometheus that enables us to get the
> metrics - status of services from systemd. This works well in CentOS 7.
> But CentOS 6 does not have systemd, hence, the collector keeps throwing
> error. Is there any alternative for this for CentOS 6?
I don't think there is any alternative which is as integrated/powerful
as systemd is on CentOS 7 and onwards.
There are lots of service supervisors. Technically, CentOS 6 uses
Upstart. However, almost no service seemed to make use of it, not even
system ones. Instead, most of the services were plain old SysV init
scripts. For those, there is no such supervision or integrated API for
monitoring.
Basically, I would go for process-based monitoring in this case (using
process_exporter).
On the other hand, support for CentOS 6 will end in only a few months so
I guess any efforts should be invested regarding migrations towards
CentOS 7 or 8...
Kind regards,
Christian