summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-05-22 16:09:33 +0100
committerMark Haines <mjark@negativecurvature.net>2015-05-22 16:09:33 +0100
commit052ac0c8d004f4c631e93d3eaab15fd3b4ebc2f0 (patch)
treeaa97f1ab0a47feb9f74404a2c943bcd2392c1cde /synapse/app/homeserver.py
parentMerge pull request #157 from matrix-org/markjh/presence_performance (diff)
parents/metric_interface/metric_bind_host/ (diff)
downloadsynapse-052ac0c8d004f4c631e93d3eaab15fd3b4ebc2f0.tar.xz
Merge pull request #159 from matrix-org/erikj/metrics_interface_config
Enable changing the interface the metrics listener binds to
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index fa43211415..f3513abb55 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -277,9 +277,12 @@ class SynapseHomeServer(HomeServer):
                     config,
                     metrics_resource,
                 ),
-                interface="127.0.0.1",
+                interface=config.metrics_bind_host,
+            )
+            logger.info(
+                "Metrics now running on %s port %d",
+                config.metrics_bind_host, config.metrics_port,
             )
-            logger.info("Metrics now running on 127.0.0.1 port %d", config.metrics_port)
 
     def run_startup_checks(self, db_conn, database_engine):
         all_users_native = are_all_users_on_domain(