Hi Juan,
On 5/19/20 9:11 AM, Juan Rosero wrote:
> I've been reading a lot on different sites and this User Group as well,
> but have not come up with a clear answer. I need to monitor a specific
> application process in Linux and verify if it's running and I've been
> reading about *--collector.processes* and enabling it on Node Exporter.
> Ideally, I would like to narrow down to that specific process instead of
> getting info on all running processes on the system. What's the best
> approach for this and correct syntax?
Besides the other replies, there are also existing process exporters
which may fit your use case.
I've been using this one:
https://github.com/ncabatoff/process-exporter
Just expect that it may accumulate some CPU time over time (which is not
necessarily a problem with that implementation; older monitoring tools
might use "ps" for such checks and cpu time will never be tracked for
them as one would only have short-living processes compared to
process_exporter).
Kind regards,
Christian