cli options, fixes

This commit is contained in:
Arseniy Kuznetsov
2021-01-09 12:02:51 +01:00
parent 9bc16cf08f
commit 16261bf827
21 changed files with 239 additions and 99 deletions

View File

@@ -28,8 +28,7 @@ class MKTXPProcessor:
def start():
router_metrics_handler = RouterMetricsHandler()
REGISTRY.register(CollectorsHandler(router_metrics_handler))
port=config_handler.mktxp_port()
MKTXPProcessor.run(port=port)
MKTXPProcessor.run(port=config_handler._entry().port)
@staticmethod
def run(server_class=HTTPServer, handler_class=MetricsHandler, port = None):