Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wenwenGeek opened this issue Aug 27, 2024 · 5 comments

Comments

@wenwenGeek
Copy link

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
Copy link
Collaborator

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

@luweglarz
Copy link

Hey!

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

@korniltsev
Copy link
Collaborator

you can try these caps, but I am not sure grafana/alloy#1616 (comment)

@luweglarz
Copy link

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
Copy link
Collaborator

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants