diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-22 13:13:07 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-22 13:13:07 +0100 |
commit | 59a0682f3e9fe64c7ab35c011b0af7b87ee54f71 (patch) | |
tree | 692fce4087f209787537bf70a51c2cfc29d75135 /synapse/config/metrics.py | |
parent | Revert register_new_matrix_user to use v1 api (diff) | |
download | synapse-59a0682f3e9fe64c7ab35c011b0af7b87ee54f71.tar.xz |
Enable changing the interface the metrics listener binds to
Diffstat (limited to '')
-rw-r--r-- | synapse/config/metrics.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/config/metrics.py b/synapse/config/metrics.py index 71a1b1d189..c843c079cf 100644 --- a/synapse/config/metrics.py +++ b/synapse/config/metrics.py @@ -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 """ |