grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
10.11k stars 611 forks source link

I don't have ROOT permissions, can I still use Alloy to collect Java process? #3521

Open wenwenGeek opened 2 months ago

wenwenGeek commented 2 months ago

pyroscope version : pyroscope_1.7.1_linux_amd64.tar.gz alloy version : 1.3.1

Hello, I want to use pyroscope.java to collect my Java process, but I don't have ROOT permissions, and Alloy requires ROOT to run Alloy, how can I solve this problem?

image
korniltsev commented 2 months ago

you can use pyroscope-java sdk https://github.com/grafana/pyroscope-java

luweglarz commented 1 month ago

Hey!

Is there any plan to be able to run the java component without root? only using capabilities

korniltsev commented 1 month ago

you can try these caps, but I am not sure https://github.com/grafana/alloy/issues/1616#issuecomment-2337725701

luweglarz commented 1 month ago

I think these caps allow us to avoid running Alloy as privileged but we still need to run it as root as it is enforced by the pyroscope.java component, I guess there is no workaround since we need to read /proc for the process discovery ?

korniltsev commented 1 month ago

yes