summary refs log tree commit diff
path: root/synapse/config/metrics.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/config/metrics.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/config/metrics.py')
-rw-r--r--synapse/config/metrics.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/config/metrics.py b/synapse/config/metrics.py
index 71a1b1d189..0cfb30ce7f 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_bind_host = config.get("metrics_bind_host", "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 host to bind the metric listener to
+        # metrics_bind_host: 127.0.0.1
         """