ncabatoff / process-exporter

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

namedprocess_namegroup_states is 1 more than namedprocess_namegroup_thread_count, which is the number of statistical threads. What is the reason? #266

Open Gaozizhong opened 1 year ago

Gaozizhong commented 1 year ago

namedprocess_namegroup_states is 1 more than namedprocess_namegroup_thread_count, which is the number of statistical threads. What is the reason?

The number of namedprocess_namegroup_thread_count is the same as the value of num_threads(20) in /proc/[pid]/stat. Why is the sum of namedprocess_namegroup_states one more than num_threads(20) in /proc/[pid]/stat?