ncabatoff / process-exporter

Prometheus exporter that mines /proc to report on selected processes
MIT License
1.72k stars 270 forks source link

process exporter does not report status properly #216

Closed ndelic0 closed 1 year ago

ndelic0 commented 2 years ago

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?

mdschmitt commented 2 years ago

Duplicate of #59 ?

hulb commented 1 year ago

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.

flixr commented 1 year ago

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

hulb commented 1 year ago

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

Thanks! It works.

ndelic0 commented 1 year ago

Confirming that using -recheck option fixed the issue.