def start_http_server(port, addr='<STR_LIT>', registry=REGISTRY):
CustomMetricsHandler = MetricsHandler.factory(registry)<EOL>httpd = _ThreadingSimpleServer((addr, port), CustomMetricsHandler)<EOL>t = threading.Thread(target=httpd.serve_forever)<EOL>t.daemon = True<EOL>t.start()<EOL>
Starts an HTTP server for prometheus metrics as a daemon thread