-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Mariadb 10.5.6 Centos 7 #65
Comments
Receiving the same error.
|
There isn't as far as I know. I did try to set remote = True and fill out both 'host' and 'port', but that still fails to get stats with the following error: 2020-11-25 13:57:18,066 [10359] mysql_metrics failed to collect MySQLd metrics due to AttributeError Haven't been able to figure out why. |
Can you try appying this change https://github.com/nginxinc/nginx-amplify-agent/pull/189 ? |
With the patch it does detect mariadb, but I still get the KeyError |
What is the output of |
I dug into the pyMySQL documentation and found out how to fix the issue. In both meta.py and metric.py (in ext/mysql/collectors/) the following change was necessary: with conn as cursor: FreeBSD probably comes with a (slightly?) newer version of the module than CentOS |
Hello,
Centos 7.8.2003
Mariadb 10.5.6
File "/usr/lib/python2.7/site-packages/amplify/ext/mysql/managers.py", line 152, in _find_local
ps, _ = (ps, None) if ps is not None else subp.call(PS_CMD)
File "/usr/lib/python2.7/site-packages/amplify/agent/common/util/subp.py", line 32, in call
raise AmplifySubprocessError(message=command, payload=dict(returncode=process.returncode, error=raw_err))
AmplifySubprocessError: (message=ps xao pid,ppid,command | grep -E 'mysqld( |$)', payload={'returncode': 1, 'error': ''})
The text was updated successfully, but these errors were encountered: