We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff02e90 + b4060c1 commit 34aed59Copy full SHA for 34aed59
1 file changed
mysqld/python_modules/mysql.py
@@ -378,8 +378,8 @@ def metric_init(params):
378
host = params.get('host', 'localhost'),
379
user = params.get('user'),
380
passwd = params.get('passwd'),
381
- port = params.get('port', 3306),
382
- connect_timeout = params.get('timeout', 30),
+ port = int(params.get('port', 3306)),
+ connect_timeout = int(params.get('timeout', 30)),
383
)
384
if params.get('unix_socket', '') != '':
385
mysql_conn_opts['unix_socket'] = params.get('unix_socket')
0 commit comments