From ace712446615f77e5056128b6695f24cb20f0624 Mon Sep 17 00:00:00 2001 From: robcxyz Date: Mon, 4 Apr 2022 18:37:24 -0700 Subject: [PATCH] chore: clean + build --- icon_contracts/metrics.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/icon_contracts/metrics.py b/icon_contracts/metrics.py index 7d4cad3..b940486 100644 --- a/icon_contracts/metrics.py +++ b/icon_contracts/metrics.py @@ -20,22 +20,3 @@ def __init__(self): "max_block_number_transactions_raw", "The block height", ) - - -# -# def set(self, metric, value): -# metric = getattr(self, metric) -# metric.labels(settings.NETWORK_NAME).set(value) -# -# -# if __name__ == '__main__': -# from prometheus_client import start_http_server -# from multiprocessing.pool import ThreadPool -# -# metrics_pool = ThreadPool(1) -# -# metrics_pool.apply_async(start_http_server, (settings.METRICS_PORT, settings.METRICS_ADDRESS)) -# start_http_server(9401, "localhost") -# -# m = Metrics() -# m.set("preps_created_python")