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

How do I monitor the nginx process?

Open hulining opened this issue 3 years ago • 1 comments

When I start with the following command, I can monitor the nginx process. However,namedprocess_namegroup_num_procs{groupname="nginx"} metrics will occasionally not be 1 when nginx is reload.

  • process.yml
process_names:
- comm:
  - nginx
  • commond line
process-exporter -config.path ./process-exporter.yml 
image

I started 40 nginx worker processes, and the metrics labeled groupname="nginx" and groupname="nginx: worker process" add up to exactly 41.

Does anyone know what's going on?

Looking forward to your reply. Thanks a lot~

hulining avatar Dec 01 '22 09:12 hulining

use startup option -children=false

unknown321 avatar Jan 11 '23 12:01 unknown321