coredump/hoardd — pull request #7 by afarnoosh (2014-01-10 09:51:14+00:00)
Title: Added support for metric collection for multiple mysql instances

First, thanks for this awesome tool. It's been incredibly useful.

We had two issues with the mysql coffee script:
1) We needed to collect metrics from all mysql instances running on a box
2) If mysql is not running, hoardd shouldn't exit with an error

Both of these have been addressed in this commit.

Sample output:

DEBUG: hoard.localhost.mysql.3306.general.txBytes 130245 1389338486
DEBUG: hoard.localhost.mysql.3306.general.keyRead_requests 0 1389338486
DEBUG: hoard.localhost.mysql.3306.general.keyReads 0 1389338486
DEBUG: hoard.localhost.mysql.3306.general.keyWrite_requests 0 1389338486
DEBUG: hoard.localhost.mysql.3306.general.keyWrites 0 1389338486

As you can see, metrics between instances will be differentiated between using port number.