From e446c45818a37a467f2716bb6c96508ed01daa48 Mon Sep 17 00:00:00 2001 From: Denis Ivanov Date: Wed, 23 May 2018 15:02:58 +0300 Subject: [PATCH] change config for mysql metrics --- aiohttp_prometheus_monitoring/metrics/mysql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,),)