Skip to content

Commit

Permalink
Merge pull request #3 from Steinerr/mysql-metric
Browse files Browse the repository at this point in the history
change config for mysql metrics
  • Loading branch information
dburakov authored May 23, 2018
2 parents 9d777c7 + e446c45 commit a7e80a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiohttp_prometheus_monitoring/metrics/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,),)

0 comments on commit a7e80a1

Please sign in to comment.