Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit c04bc2ac245428213f51c6c22d050bc6c17dc63b 1 parent 7142d7f
@tsuna tsuna authored tsuna committed
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"]
Please sign in to comment.
Something went wrong with that request. Please try again.