mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-07 16:11:58 +00:00
The flag is named enable_metrics, not collect_metrics
Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
187a546bff
commit
12285a1a76
@ -97,7 +97,7 @@ class AppserviceServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
@ -122,7 +122,7 @@ class ClientReaderServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
@ -138,7 +138,7 @@ class EventCreatorServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
@ -111,7 +111,7 @@ class FederationReaderServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
@ -125,7 +125,7 @@ class FederationSenderServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
@ -176,7 +176,7 @@ class FrontendProxyServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
@ -266,7 +266,7 @@ class SynapseHomeServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
@ -118,7 +118,7 @@ class MediaRepositoryServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
@ -128,7 +128,7 @@ class PusherServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
@ -305,7 +305,7 @@ class SynchrotronServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
@ -150,7 +150,7 @@ class UserDirectoryServer(HomeServer):
|
|||||||
elif listener["type"] == "metrics":
|
elif listener["type"] == "metrics":
|
||||||
if not self.get_config().enable_metrics:
|
if not self.get_config().enable_metrics:
|
||||||
logger.warn(("Metrics listener configured, but "
|
logger.warn(("Metrics listener configured, but "
|
||||||
"collect_metrics is not enabled!"))
|
"enable_metrics is not True!"))
|
||||||
else:
|
else:
|
||||||
_base.listen_metrics(listener["bind_addresses"],
|
_base.listen_metrics(listener["bind_addresses"],
|
||||||
listener["port"])
|
listener["port"])
|
||||||
|
Loading…
Reference in New Issue
Block a user