You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to apply the same to get the metrics for the busiest CPU thread in the group. This is helpful to understand when particular thread is CPU bound.
There is an existing option that should satisfy your need: enable thread-based metrics using the -threads option. Then use the metric namedprocess_namegroup_thread_cpu_seconds_total.
I was able to verify your solution and it does not work. --threads seems to do the grouping by thread name and not thread_id, which are really set in reality even if they are they are not unique.
Only one line even through MySQL has 300 threads on this box.
I think being able to spot the hot threads is quite valuable as CPU usage itself does not make a difference whenever one thread was using CPU or multiple
Process Exporter already reports the worst FD Usage Ratio for processes in the group
namedprocess_namegroup_worst_fd_ratio{groupname="agetty"} 0.00390625
It would be great to apply the same to get the metrics for the busiest CPU thread in the group. This is helpful to understand when particular thread is CPU bound.
OkMeter has good description of this idea
https://okmeter.io/docs/processes
The text was updated successfully, but these errors were encountered: