summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-04-30 17:52:20 +0100
committerMark Haines <mjark@negativecurvature.net>2015-04-30 17:52:20 +0100
commit95cbfee8ae1a1bf27e0c8aa10668e936c7d775c0 (patch)
tree4086866f1dcdebb9da98792493579cdeec88c233 /synapse/config
parentUpdate README.rst (diff)
downloadsynapse-95cbfee8ae1a1bf27e0c8aa10668e936c7d775c0.tar.xz
Update metrics.py
Diffstat (limited to '')
-rw-r--r--synapse/config/metrics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/config/metrics.py b/synapse/config/metrics.py
index 06e2e7ccff..71a1b1d189 100644
--- a/synapse/config/metrics.py
+++ b/synapse/config/metrics.py
@@ -19,7 +19,7 @@ from ._base import Config
 class MetricsConfig(Config):
     def read_config(self, config):
         self.enable_metrics = config["enable_metrics"]
-        self.metrics_port = config["metrics_port"]
+        self.metrics_port = config.get("metrics_port")
 
     def default_config(self, config_dir_path, server_name):
         return """\
@@ -29,5 +29,5 @@ class MetricsConfig(Config):
         enable_metrics: False
 
         # Separate port to accept metrics requests on (on localhost)
-        metrics_port: ~
+        # metrics_port: 8081
         """