-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
MariaDB user statistics are different from Percona version #2910
Comments
@gioxchopper Do you know what version of the database you used when you wrote this? |
I am struggling with the same issue, any idea how to resolve it ? |
We probably should have a fallback query: optimistically try with the existing percona query and if it fails then try a mysql specific one. |
I'm having this problem too, i cannot monitor any of my mariadb servers sadly. |
I had this issue too so I propose a PR with a logic based on @danielnelson proposal |
MariaDB has two different table definitions: - https://mariadb.com/kb/en/library/information-schema-user_statistics-table/ Percona has it's own: - https://www.percona.com/doc/percona-server/LATEST/diagnostics/user_stats.html#USER_STATISTICS MySQL doesn't have the table, but there may be a patch: - https://www.byte.nl/blog/enhancing-mysql-with-user-statistics Resolves #2910 Closes #3382
I am in 1.8.0 and still the same error occurs |
@rmacian What version of MariaDB? |
@danielnelson is version 5.5.52 |
Can you open it as a new issue? |
something similar: #5418 |
This solves issue with collecting user stats from mariadb 10 See influxdata#2910 (Note - the person claiming 1.8 didn't work for them is using mariadb 5... we are using mariadb 10 which is explicitly handled in the new plugin)
This solves issue with collecting user stats from mariadb 10 See influxdata#2910 (Note - the person claiming 1.8 didn't work for them is using mariadb 5... we are using mariadb 10 which is explicitly handled in the new plugin)
Bug report
System info:
Telegraf 1.3.1, MariaDB 10.1.24
Steps to reproduce:
Expected behavior:
Information should be collected.
Actual behavior:
Error in logs:
Jun 12 14:43:10 db1 telegraf[14838]: 2017-06-12T13:43:10Z E! MySQL Error gathering user stats: Error 1054: Unknown column 'rows_fetched' in 'field list'
Jun 12 14:43:10 db1 telegraf[14838]: 2017-06-12T13:43:10Z E! Error in plugin [inputs.mysql]: sql: expected 26 destination arguments in Scan, not 23
Additional info:
The text was updated successfully, but these errors were encountered: