diff --git a/aiohttp_prometheus_monitoring/metrics/mysql.py b/aiohttp_prometheus_monitoring/metrics/mysql.py index 346fb1c..8b4ffdc 100644 --- a/aiohttp_prometheus_monitoring/metrics/mysql.py +++ b/aiohttp_prometheus_monitoring/metrics/mysql.py @@ -10,7 +10,7 @@ def __init__(self, database, user, password, host, port=3006, *args, **kwargs): super().__init__(*args, **kwargs) self.connection_params = { - 'database': database, + 'db': database, 'user': user, 'password': password, 'host': host, @@ -29,4 +29,4 @@ async def select_one(connection_params): async def check(self): response = await self.select_one(self.connection_params) - return response == [(1,)] + return response == ((1,),)