ncabatoff / process-exporter

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

Keep only the last state of the process. #230

Open leoberbert opened 2 years ago

leoberbert commented 2 years ago

Good Morning! I have come across a situation that I think is a BUG. I put the exporter to perform the data collection, but in the namedprocess_namegroup_num_procs metric it always keeps the history of the process that was not running.

Would there be some way to keep only the current state of the process, such as 0 or 1 And not the log history.

Regards,