Browse files

Fix the metric name used for InnoDB mutex locks.

The metric name ought to be `mysql.innodb.locks'.

Change-Id: I7297ab0822fc945d60fde5b8be849155b74557cd
  • Loading branch information...
1 parent 7142d7f commit c04bc2ac245428213f51c6c22d050bc6c17dc63b @tsuna tsuna committed with tsuna Aug 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 collectors/0/mysql.py
View
2 collectors/0/mysql.py
@@ -256,7 +256,7 @@ def printmetric(metric, value, tags=""):
wait_count = int(status.split("=", 1)[1])
waits[mutex] = waits.get(mutex, 0) + wait_count
for mutex, wait_count in waits.iteritems():
- printmetric(mutex, wait_count)
+ printmetric("innodb.locks", wait_count, " mutex=" + mutex)
slave_status = todict(db, db.query("SHOW SLAVE STATUS")[0])
master_host = slave_status["master_host"]

0 comments on commit c04bc2a

Please sign in to comment.