prometheus: Listen on 127.0.0.1 by default

Make the prometheus plugin listen on 127.0.0.1 (localhost) by default
instead of open to the world. This closes a privacy breach in the
default configuration.
This commit is contained in:
laanwj
2022-04-12 11:41:37 +02:00
committed by Christian Decker
parent e96d400c10
commit b3c7cce8d9
2 changed files with 3 additions and 3 deletions

View File

@@ -5,8 +5,8 @@ so it can be scraped, plotted and alerts can be created on it. The plugin adds
the following command line arguments:
- `prometheus-listen`: the IP address and port to bind the HTTP server to
(default: `0.0.0.0:9750`)
(default: `127.0.0.1:9750`)
Exposed variables include:
- `node`: ID, version, ...

View File

@@ -220,7 +220,7 @@ def init(options, configuration, plugin):
plugin.add_option(
'prometheus-listen',
'0.0.0.0:9750',
'127.0.0.1:9750',
'Address and port to bind to'
)