s/metric_interface/metric_bind_host/

This commit is contained in:
Erik Johnston 2015-05-22 14:51:22 +01:00
parent 8bb85c8c5a
commit 1ce1509989
2 changed files with 5 additions and 5 deletions

View File

@ -277,11 +277,11 @@ class SynapseHomeServer(HomeServer):
config, config,
metrics_resource, metrics_resource,
), ),
interface=config.metrics_interface, interface=config.metrics_bind_host,
) )
logger.info( logger.info(
"Metrics now running on %s port %d", "Metrics now running on %s port %d",
config.metrics_interface, config.metrics_port, config.metrics_bind_host, config.metrics_port,
) )
def run_startup_checks(self, db_conn, database_engine): def run_startup_checks(self, db_conn, database_engine):

View File

@ -20,7 +20,7 @@ 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.get("metrics_port") self.metrics_port = config.get("metrics_port")
self.metrics_interface = config.get("metrics_interface", "127.0.0.1") self.metrics_bind_host = config.get("metrics_bind_host", "127.0.0.1")
def default_config(self, config_dir_path, server_name): def default_config(self, config_dir_path, server_name):
return """\ return """\
@ -32,6 +32,6 @@ class MetricsConfig(Config):
# Separate port to accept metrics requests on # Separate port to accept metrics requests on
# metrics_port: 8081 # metrics_port: 8081
# Which interface to bind the metric listener to # Which host to bind the metric listener to
# metrics_interface: 127.0.0.1 # metrics_bind_host: 127.0.0.1
""" """