process-exporter
process-exporter copied to clipboard
How do I monitor the nginx process?
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
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~
use startup option -children=false