Hi
This is an interesting topic.
Although I think something similar, I conclude that to expose metrics on arbitrary processes is not necessary.
I agree with Fabian and Björn.
Instead of it, in my use case, I create exporter to expose metrics on specified process.
For example, because I want to monitor fluentd cpu usage, I create fluentd_exporter(
https://github.com/wyukawa/fluentd_exporter)
fluentd is a log collector written in ruby.
Fluentd is required to execute in multi process because of GVL(Giant VM Lock)
So, I want to check process level metrics.
But maybe such kind of use case is not common.
Thanks
Wataru Yukawa