Skip to content

Commit

Permalink
Adjust the prometheusmonitoring to the newest changes in aioprometheu…
Browse files Browse the repository at this point in the history
…s 21.9.0
  • Loading branch information
giffels committed Sep 24, 2021
1 parent 9d45bbc commit 67ad26c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. Created by changelog.py at 2021-09-01, command
.. Created by changelog.py at 2021-09-24, command
'/Users/giffler/.cache/pre-commit/repor6pnmwlm/py_env-python3.9/bin/changelog docs/source/changes compile --output=docs/source/changelog.rst'
based on the format of 'https://keepachangelog.com/'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_cryptography_version():
"asyncssh",
"aiotelegraf",
"elasticsearch",
"aioprometheus",
"aioprometheus>=21.9.0",
"kubernetes_asyncio",
"pydantic",
],
Expand Down
4 changes: 2 additions & 2 deletions tardis/plugins/prometheusmonitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from ..utilities.attributedict import AttributeDict

import logging
from aioprometheus import Service, Gauge
from aioprometheus.service import Service
from aioprometheus import Gauge

logger = logging.getLogger("cobald.runtime.tardis.plugins.prometheusmonitoring")

Expand Down Expand Up @@ -36,7 +37,6 @@ def __init__(self):
}

for gauge in self._gauges.values():
self._svr.register(gauge)
gauge.set({}, 0)

async def start(self):
Expand Down

0 comments on commit 67ad26c

Please sign in to comment.