A PM2 module to monitor a MySQL server with Keymetrics. Current stable version is 1.0.0, released in 2016. It provides metrics on MySQL connections, queries, slow queries, and disk I/O. It requires a MySQL server (tested against v5.6) and optionally iostat from sysstat for disk read/write monitoring. This package has not been updated in years and is largely obsolete; users should consider alternatives like PM2's built-in metrics or modern monitoring solutions.
npm install pm2-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installing and configuring pm2-mysql to monitor a MySQL server with Keymetrics.
Consider alternative monitoring solutions like PM2's built-in metrics or Prometheus exporters.
Use pm2 install pm2-mysql instead of npm install.
Install sysstat (e.g., apt-get install sysstat) and ensure iostat is in PATH.
Enable slow_query_log and general_log in MySQL config and set log file permissions.
Use 'pm2 install pm2-mysql' instead of 'npm install pm2-mysql'.
Verify MySQL is running and accessible from the host. Check pm2-mysql configuration with pm2 set.
Run 'npm install mysql' in the PM2 module directory or globally.
Ensure PM2 is linked to Keymetrics account and pm2-mysql is correctly configured.