mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 17:50:21 +00:00
Update metrics.py
This commit is contained in:
parent
4ad8350607
commit
95cbfee8ae
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ from ._base import Config
|
||||||
class MetricsConfig(Config):
|
class MetricsConfig(Config):
|
||||||
def read_config(self, config):
|
def read_config(self, config):
|
||||||
self.enable_metrics = config["enable_metrics"]
|
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):
|
def default_config(self, config_dir_path, server_name):
|
||||||
return """\
|
return """\
|
||||||
|
@ -29,5 +29,5 @@ class MetricsConfig(Config):
|
||||||
enable_metrics: False
|
enable_metrics: False
|
||||||
|
|
||||||
# Separate port to accept metrics requests on (on localhost)
|
# Separate port to accept metrics requests on (on localhost)
|
||||||
metrics_port: ~
|
# metrics_port: 8081
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue