Move prometheus setup to mautrix-python

This commit is contained in:
Tulir Asokan
2020-09-09 14:02:37 +03:00
parent 668dad9c6f
commit 2a1bddf5e4
2 changed files with 1 additions and 8 deletions
-7
View File
@@ -78,13 +78,6 @@ class TelegramBridge(Bridge):
provisioning_api.app)
context.provisioning_api = provisioning_api
if self.config["metrics.enabled"]:
if prometheus:
prometheus.start_http_server(self.config["metrics.listen_port"])
else:
self.log.warning("Metrics are enabled in the config, "
"but prometheus_client is not installed.")
def prepare_bridge(self) -> None:
self.bot = init_bot(self.config)
context = Context(self.az, self.config, self.loop, self.session_container, self, self.bot)
+1 -1
View File
@@ -4,6 +4,6 @@ ruamel.yaml>=0.15.35,<0.17
python-magic>=0.4,<0.5
commonmark>=0.8,<0.10
aiohttp>=3,<4
mautrix>=0.7,<0.8
mautrix>=0.7.1,<0.8
telethon>=1.16,<1.17
telethon-session-sqlalchemy>=0.2.14,<0.3