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

added a 'report missing' feature

Open wardellc opened this issue 5 years ago • 10 comments

Added a "report.missing" command line option. When enabled this will report processes which are not running when process-exporter is first ran as having a num_procs of zero. E.g. if firefox isn't running when process-exporter is started and "firefox" is in a "comm" section, the following metric will be reported:

namedprocess_namegroup_num_procs{groupname="firefox"} 0

It uses the "name" field from the process-exporter config file and if the "name" field does not exist it uses all of the process names from the "comm" or "exe" arrays.

This provides a solution to this issue: https://github.com/ncabatoff/process-exporter/issues/59

wardellc avatar Jun 05 '19 16:06 wardellc

Would like to use this feature, merge please!

rhamon avatar Oct 01 '19 13:10 rhamon

Expecting this feature

shdxiang avatar Feb 06 '20 07:02 shdxiang

it'll be great with this feature, merge please ! in advance thanks

rafernandez avatar Jun 29 '20 14:06 rafernandez

I modified it on this basis and changed it to report missing if there is report_missing in the configuration file, because some of my services need report missing, and some don’t https://github.com/jinnzy/process-exporter

process_names:
  - name: auditd
    report_missing: true
    comm:
    - auditd
  - name: NetworkManager
    report_missing: true
    comm:
    - NetworkManager
  - name: puppet
    report_missing: true
    comm:
    - puppet
  - name: "zookeeper"
    comm:
      - "java"
    cmdline:
      - ".*zookeeper/bin.*"

jinnzy avatar Aug 22 '20 13:08 jinnzy

@ncabatoff Any updates on this?

abhishekgupta-ontic avatar Jan 18 '21 12:01 abhishekgupta-ontic

@ncabatoff Any updates on this?

now ?

Lemon-le avatar Mar 26 '21 09:03 Lemon-le

Very useful feature for us, we track about a half a dozen system level processes and if they fail to start on boot then we never whether they started or not. Can we get this merged @ncabatoff ?

chjohnst avatar Apr 12 '21 21:04 chjohnst

@wardellc , it looks like there are merge conflicts now. Mind fixing those and maybe @ncabatoff can merge this? I got caught by this after a reboot just like everyone else.. 😞

mdschmitt avatar Nov 14 '21 03:11 mdschmitt

Very expected feature =(

silabeer avatar Mar 25 '22 07:03 silabeer

Would love this feature!

kelleranu avatar Nov 03 '23 10:11 kelleranu