Re: [prometheus-users] Getting status of services in CentOS 6.

2020-04-01 Thread Yagyansh S. Kumar
Alas, only if migration from CentOS 6 to 7 was in my hand :P. 
But thanks for the suggestion, will give process exporter a try.

On Wednesday, April 1, 2020 at 2:50:39 AM UTC+5:30, Christian Hoffmann 
wrote:
>
> 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 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/9b7330d0-ee3c-4eb6-a6b8-9a2f32107095%40googlegroups.com.


Re: [prometheus-users] Getting status of services in CentOS 6.

2020-03-31 Thread Christian Hoffmann
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

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/a65ebd2f-ade8-54d2-4fb7-3d9a3356f19c%40hoffmann-christian.info.


[prometheus-users] Getting status of services in CentOS 6.

2020-03-31 Thread Yagyansh S. Kumar
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?
Also, in my 6 VMs the URL http://localhost:9001 was giving 404 status and 
supervisord collector was enabled, and the load of the machines sky 
rocketed and node_exporter started consuming over 98%+ CPU. I haven't seen 
any abnormality in the server, so can this be cause for the high load, 
because I think these kind of bugs were fixed in late 2017.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/e281fce4-9192-4fc1-bac7-a88a9843d3fd%40googlegroups.com.