Today I am introducing my first open source contribution to MySQL: MyQ Gadgets. These are a small collection of tools I wrote to make it easier to see what is going on inside of a running MySQL server. There's nothing magical about them, they simply collect values from SHOW STATUS, SHOW SLAVE STATUS, and SHOW INNODB STATUS and present them in an easier-to-digest format similar to that of iostat (for those who are familiar with it). Here's an example of some data from SHOW INNODB STATUS:
./myq_innodb_status -h mysqlhost.domain.com -u user -p password -t 20 row Inno Engine (/sec) Buffer (/sec) (%) Log OS (/sec) Semaphores time read ins upd del new read wrte full dirt hit io/s read wrte fsyc spw rnds osw 16:10:55 3.8k 9.8 9.7 0 0.3 0 13.7 93 13 100 14.1 0 19.4 14.7 30m 94m 485k 16:11:15 1.0k 10.0 4.8 0 0.3 0.1 17.6 93 13 100 11.5 0.1 20.0 12.4 3.0 21.0 1.0
