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

Is there any way to disable the Alloy HTTP server #1509

Open
frejanordsiek opened this issue Aug 20, 2024 · 1 comment
Open

Is there any way to disable the Alloy HTTP server #1509

frejanordsiek opened this issue Aug 20, 2024 · 1 comment

Comments

@frejanordsiek
Copy link

When alloy runs, it launches a local HTTP server for debugging, defaulting to binding to 127.0.0.1:1234 (see https://grafana.com/docs/alloy/latest/troubleshoot/debug and https://grafana.com/docs/alloy/latest/reference/cli/run/ ).

Going through the documentation (config file docs and command line interface docs), there appears to be no way to actually disable this local HTTP server. Is there any way to disable it (clearly not documented) short of patching Alloy's source code and building it from source? This would be much much much better (and more reliable) than having to use a firewall rule to block the port on localhost.

For reference, this is for running Alloy on multi-user nodes where exposing internal interfaces to local users is something to be avoided.

@defanator
Copy link
Contributor

Would love to see such an option as well. We have some environments where multiple instances of alloy are running on the same VM in the same netns space; currently the only way to have these together is explicitly specifying different ports for that [unnecessary in those particular envs] feature.

Also, memory consumption of alloy itself is my personal concern. It takes a lot of rss memory even for quite easy and straightforward tasks like local logs scraping. Having knobs to disable potentially memory-greedy features would be good.

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

2 participants