process-exporter icon indicating copy to clipboard operation
process-exporter copied to clipboard

process exporter does not report status properly

Open ndelic0 opened this issue 3 years ago • 1 comments

From some reason process exporter does not detect that monitored process is up.

curl -s localhost:9256/metrics | grep -i namedprocess_namegroup_num_procs | grep foo
namedprocess_namegroup_num_procs{groupname="foo"} 0

While the monitored process is reported as up in px aux output. Only after the process exporter is restarted than it properly catches proper metric value

curl -s localhost:9256/metrics | grep -i namedprocess_namegroup_num_procs | grep foo
namedprocess_namegroup_num_procs{groupname="foo"} 1

Any advice?

ndelic0 avatar Dec 01 '21 13:12 ndelic0

Duplicate of #59 ?

mdschmitt avatar Apr 13 '22 09:04 mdschmitt

I get the same issue today . The situation is that I'm using process exporter in docker swarm, the process exporter can't get any metrics of process runs on the host which start up later than process exporter. If I recreated the process exporter container then it can see the processes.

In my case I think it's not a process exporter problem, may be a docker swarm problem. I decide to use cadvisor to get my metrics.

hulb avatar Feb 01 '23 11:02 hulb

@hulb see the -recheck option: https://github.com/ncabatoff/process-exporter#running

flixr avatar Feb 01 '23 13:02 flixr

@hulb see the -recheck option: https://github.com/ncabatoff/process-exporter#running

Thanks! It works.

hulb avatar Feb 02 '23 04:02 hulb

Confirming that using -recheck option fixed the issue.

ndelic0 avatar Feb 06 '23 10:02 ndelic0