-
-
Save samlambert/5089207 to your computer and use it in GitHub Desktop.
One liner to print MySQL Queries Per Second.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqladmin ext -i1 | gawk '/Queries/{q=$4-ql;ql=$4; printf("%s QPS: %s\n", strftime("%H:%M:%S"), q)}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output to file: