-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Can't bind to localhost or 127.0.0.1, service is always visible to the outside #817
Comments
Can't reproduce that by running the binary directly. Have you made My test:
|
Maybe this will be useful for someone. A lot of the directions out there use this configuration for the systemd service: --web.listen-address="127.0.0.1:9115" When you use that the service starts without error but the setting won't be used. Changed the line to this to make it pick it up: --web.listen-address=127.0.0.1:9115 |
Host operating system: output of
uname -a
Linux 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux
blackbox_exporter version: output of
blackbox_exporter --version
blackbox_exporter, version 0.19.0 (branch: HEAD, revision: 5d575b8)
build user: root@2b0258d5a55a
build date: 20210510-12:56:44
go version: go1.16.4
platform: linux/amd64
What is the blackbox.yml module config.
What is the prometheus.yml scrape config.
What logging output did you get from adding
&debug=true
to the probe URL?From /var/log/syslog:
Aug 10 14:15:05 infra-01 blackbox_exporter[41318]: level=info ts=2021-08-10T18:15:05.701Z caller=main.go:385 msg="Listening on address" address=:9115
What did you do that produced an error?
I configured my service config file (/lib/systemd/system/blackbox.service) with:
Point a browser to our public web address of the server running blackbox_exporter
What did you expect to see?
I was expecting to see nothing, as in: a connection could not be established
What did you see instead?
I could pull up the /metrics page and the /config page
The text was updated successfully, but these errors were encountered: