Skip to content

Commit

Permalink
prometheus_client v0.5 support
Browse files Browse the repository at this point in the history
remove default labelvalues from Gauge init
  • Loading branch information
dburakov authored Dec 10, 2018
1 parent 2dd12ff commit c4e3d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp_prometheus_monitoring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c4e3d6c

Please sign in to comment.