pcp
[Top] [All Lists]

[question] How to monitor specific proc only using pmda proc ?

To: "pcp@xxxxxxxxxxx" <pcp@xxxxxxxxxxx>
Subject: [question] How to monitor specific proc only using pmda proc ?
From: Aurelien Gonnay <aurelien.gonnay@xxxxxxxxx>
Date: Fri, 17 Jul 2015 08:55:01 +0000
Accept-language: en-US, fr-FR
Delivered-to: pcp@xxxxxxxxxxx
Thread-index: AdDAbUPUlF1/MqveTjyqwXKiygv8Tg==
Thread-topic: [question] How to monitor specific proc only using pmda proc ?

Hi everyone,

 

I am currently doing a PoC with PCP, with 2 servers o1, o2 being monitored by a third one m1.

The system monitoring part is going well, and the deeper I dig, the stronger my feeling is that pcp is the right tools for monitoring our platform.

 

However I'm struggling with pmdaproc, and the monitoring of a set of processes of interests.

Note that unfortunately we’re using 3.9.x version (rhel66) hence hotproc is not an option for us.

 

My use case is fairly simple:

- On o1 and o1, I have a bunch of important business processes that I can easily identify (.pid files, and watcher processes)

- I need metrics exposed by proc pmda collected on m1 only for the business processes with a relatively high frequency (every 5sec or so).

 

How can I instruct the local pmda proc to only watch that set of pids ?

I'm not necessarily looking for a full blown answer, but rather for someone to point me in the right direction.

Here are the directions I was contemplating:

- on o1 and o2, use pmstore to define the instances (pid) i'm interested in (using my watcher processes for instance). Does that seem realistic and doable ? Assuming it is, could one elaborate on how to use pmstore precisely to change the instances perimeter ?

- run the processes i'm interested in, in a separate cgroup “business”, and run a separate pmdaproc for that subgroup. That solution seems pretty solid, but also means we'd have to setup cgroups and co for that, which means more work and complexity around that for us, so I’d be happier if a the first option could be used.

 

Thanks in advance

 

Aurelien Gonnay

Software Engineer

Exane Derivatives

0033144951957

 

 ___________________________________

The integrity of this message cannot be guaranteed on the internet. Therefore EXANE cannot be considered responsible for the contents.
If you are not the intended recipient of this message, please delete it and notify the sender.

This message is provided for information purposes only and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.
Although it may contain some elements from publications produced by Exane's research department, this message is not research.
Please consult our web site for important disclaimers and disclosures concerning Exane's research. (http://www.exane.com)
 ___________________________________
<Prev in Thread] Current Thread [Next in Thread>