mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:26:02 -04:00
Enable changing the interface the metrics listener binds to
This commit is contained in:
parent
254aa3c986
commit
59a0682f3e
2 changed files with 6 additions and 2 deletions
|
@ -20,6 +20,7 @@ class MetricsConfig(Config):
|
|||
def read_config(self, config):
|
||||
self.enable_metrics = config["enable_metrics"]
|
||||
self.metrics_port = config.get("metrics_port")
|
||||
self.metrics_interface = config.get("metrics_interface", "127.0.0.1")
|
||||
|
||||
def default_config(self, config_dir_path, server_name):
|
||||
return """\
|
||||
|
@ -28,6 +29,9 @@ class MetricsConfig(Config):
|
|||
# Enable collection and rendering of performance metrics
|
||||
enable_metrics: False
|
||||
|
||||
# Separate port to accept metrics requests on (on localhost)
|
||||
# Separate port to accept metrics requests on
|
||||
# metrics_port: 8081
|
||||
|
||||
# Which interface to bind the metric listener to
|
||||
# metrics_interface: 127.0.0.1
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue