From c4e3d6c22497e9c813e145e183ba8871154285f8 Mon Sep 17 00:00:00 2001 From: dburakov Date: Mon, 10 Dec 2018 12:28:52 +0300 Subject: [PATCH] prometheus_client v0.5 support remove default labelvalues from Gauge init --- aiohttp_prometheus_monitoring/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohttp_prometheus_monitoring/__init__.py b/aiohttp_prometheus_monitoring/__init__.py index 8783346..5a697d8 100644 --- a/aiohttp_prometheus_monitoring/__init__.py +++ b/aiohttp_prometheus_monitoring/__init__.py @@ -42,7 +42,7 @@ async def init_metrics(config): metric_class = import_by_path(metric['module']) kwargs = metric['params'] - kwargs['collector'] = Gauge(metric['name'], metric['description'], None) + kwargs['collector'] = Gauge(metric['name'], metric['description']) task = PeriodicTask(metric['sleep_time'], metric_class, **kwargs) await task.start()