def start_http_server(port, addr=''):
    class PrometheusMetricsServer(threading.Thread):
        def run(self):
            httpd = HTTPServer((addr, port), MetricsHandler)
            httpd.serve_forever()
    t = PrometheusMetricsServer()
    t.daemon = True
    t.start()
Allocates 'num_ids' new ids from the 'asset_id_seq' column in a
dataset/ETHPy150Open prometheus/client_python/prometheus_client/exposition.py/start_http_server--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/user.py/User.AllocateAssetIds