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