Check mysql-perf-metrics


Checks some performance related metrics and best practice configurations for MySQL/MariaDB. Logic is taken from MySQLTuner script, v1.9.8.


  • Requires MySQL/MariaDB v5.5+.

  • On RHEL 7+, one way to install the Python MySQL Connector is via pip install pymysql

  • Compared to check_mysql / MySQLTuner this check currently:

    • supports only simple login with username/password (not via SSL/TLS)

    • does not support a connection via socket

Fact Sheet

Check Plugin Download

Check Interval Recommendation

Once a day

Can be called without parameters


Available for

Python 3, Windows


Python module pymysql; User with no privileges, locked down to - for example monitoring@ Usernames in MySQL/MariaDB are limited to 16 chars in specific versions.


usage: mysql-perf-metrics [-h] [-V] [--always-ok] [-H HOSTNAME] [-p PASSWORD]
                          [--port PORT] [-u USERNAME]

Checks some performance metrics and best practice configurations for

  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  --always-ok           Always returns OK.
  -H HOSTNAME, --hostname HOSTNAME
                        MySQL/MariaDB hostname. Default:
  -p PASSWORD, --password PASSWORD
                        Use the indicated password to authenticate the
                        connection. Default:
  --port PORT           MySQL/MariaDB port. Default: 3306
  -u USERNAME, --username USERNAME
                        MySQL/MariaDB username. Default: root

Usage Examples

./mysql-perf-metrics --hostname localhost --username root --password mypassword


Stat are updated during querying INFORMATION_SCHEMA [WARNING]. Set innodb_stats_on_metadata to OFF. Concurrent INSERTs are off [WARNING]. Set concurrent_insert to AUTO or ALWAYS. InnoDB File per table is not activated [WARNING]. Set innodb_file_per_table to ON.


  • WARN if concurrent_insert is not set to AUTO or ALWAYS

  • WARN if innodb_file_per_table is not set to ON

  • WARN if innodb_stats_on_metadata is not set to OFF

Perfdata / Metrics

There is no perfdata.

Credits, License