Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Jorge Salamero Sanz <jsalamero@serverdensity.com>
29 October 2015
obviously ;-)
When
Process_count (/usr/sbin/mysqld)
!= 1
alert
● Load
● CPU
● Memory
● Swap
● Network
● Read/Write requests
● IO queue length
● Average IO wait
● Average R/W time
● Read...
Is MySQL available?
● Uptime
● Threads_connected
● Connection usage %
● Aborted_connects
Typical points of failure:
● Errors in mysql.log
● Are logs being rotated?
● Deleted files with FD still open?
● Enough di...
Are queries actually being run?
● Questions/s
● Queries/s
● Read/Writes
● Commands
The bad queries (not necessarily):
● Slow_queries
● Select_full_join
● Created_tmp_disk_tables
● Full table scans
Caches, buffers and locks:
● Innodb_row_lock_waits
● Innodb_buffer_pool_wait_free
● Open_tables
● Long running transaction...
$ mysql
$ mysqladmin
$ innotop
$ mysqlreport
Percona Monitoring Plugins
● Nagios, Cacti, Zabbix
● can be used as CLI tools together
with Percona Toolkit
How to Monitor MySQL
How to Monitor MySQL
How to Monitor MySQL
How to Monitor MySQL
How to Monitor MySQL
Upcoming SlideShare
Loading in …5
×

How to Monitor MySQL

How to Monitor MySQL, MariaDB or Percona, choosing the right metrics & alerts.

Read more on https://blog.serverdensity.com/how-to-monitor-mysql/

  • Be the first to comment

How to Monitor MySQL

  1. 1. Jorge Salamero Sanz <jsalamero@serverdensity.com> 29 October 2015
  2. 2. obviously ;-) When Process_count (/usr/sbin/mysqld) != 1 alert
  3. 3. ● Load ● CPU ● Memory ● Swap ● Network ● Read/Write requests ● IO queue length ● Average IO wait ● Average R/W time ● Read/Write bandwidth
  4. 4. Is MySQL available? ● Uptime ● Threads_connected ● Connection usage % ● Aborted_connects
  5. 5. Typical points of failure: ● Errors in mysql.log ● Are logs being rotated? ● Deleted files with FD still open? ● Enough disk space?
  6. 6. Are queries actually being run? ● Questions/s ● Queries/s ● Read/Writes ● Commands
  7. 7. The bad queries (not necessarily): ● Slow_queries ● Select_full_join ● Created_tmp_disk_tables ● Full table scans
  8. 8. Caches, buffers and locks: ● Innodb_row_lock_waits ● Innodb_buffer_pool_wait_free ● Open_tables ● Long running transactions ● Deadlocks
  9. 9. $ mysql $ mysqladmin $ innotop $ mysqlreport
  10. 10. Percona Monitoring Plugins ● Nagios, Cacti, Zabbix ● can be used as CLI tools together with Percona Toolkit

×