process-exporter
process-exporter copied to clipboard
added a 'report missing' feature
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
Would like to use this feature, merge please!
Expecting this feature
it'll be great with this feature, merge please ! in advance thanks
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.*"
@ncabatoff Any updates on this?
@ncabatoff Any updates on this?
now ?
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 ?
@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.. 😞
Very expected feature =(
Would love this feature!