Using go.d/mysql plugin with Percona, and I’m able to see charts with connections, queries etc. but there’s no user statistics.
In documentation there’s a link to MariaDB, does this mean that user statistics doesn’t work with Percona?
I can see user statistics with “SELECT * FROM INFORMATION_SCHEMA.USER_STATISTICS\G” on a Percona prompt.
Current configuration /etc/netdata/go.d/mysql.conf:
According to the docs, indeed it should show user statistics. Maybe it detected that it’s not MariaDB and incorrectly infers that this option is not supported.
Please, can you verify that you have fulfilled all the requirements as illustrated in the docs?
I think I have configured according to docs, maybe I missed something basic
Running in debug mode shows a continuous output like:
BEGIN ‘mysql_db1.innodb_rows’ 3999409
SET ‘innodb_rows_inserted’ = 782842830
SET ‘innodb_rows_read’ = 376277549748
SET ‘innodb_rows_updated’ = 77101668
SET ‘innodb_rows_deleted’ = 179734055
END
BEGIN ‘mysql_db1.innodb_buffer_pool_pages’ 3999409
SET ‘innodb_buffer_pool_pages_data’ = 617960
SET ‘innodb_buffer_pool_pages_dirty’ = 14969
SET ‘innodb_buffer_pool_pages_free’ = 22290
SET ‘innodb_buffer_pool_pages_misc’ = 15030
SET ‘innodb_buffer_pool_pages_total’ = 655280
END
BEGIN ‘mysql_db1.innodb_buffer_pool_flush_pages_requests’ 3999409
SET ‘innodb_buffer_pool_pages_flushed’ = 141297280
END
BEGIN ‘mysql_db1.innodb_buffer_pool_bytes’ 3999409
SET ‘innodb_buffer_pool_bytes_data’ = 10124656640
SET ‘innodb_buffer_pool_bytes_dirty’ = 245252096
END
BEGIN ‘mysql_db1.innodb_buffer_pool_read_ahead’ 3999409
SET ‘innodb_buffer_pool_read_ahead’ = 575450
SET ‘innodb_buffer_pool_read_ahead_evicted’ = 0
SET ‘innodb_buffer_pool_read_ahead_rnd’ = 0
END
BEGIN ‘mysql_db1.innodb_buffer_pool_ops’ 3999409
SET ‘innodb_buffer_pool_reads’ = 5280990
SET ‘innodb_buffer_pool_wait_free’ = 1909
END
SHOW USER_STATISTICS\G as netdata user works.
As I haven’t seen how things are collected for user stats, should there be an exact database name configured in configuration for it to work, or is my configuration valid to collect user stats and make charts?
Latest update works with Percona! (a fix from august 2022)
A developer at my company was actually debugging on the plugin and found the issue, but also found that a docker-compose pull; docker-compose up -d made Netdata work with Percona