Skip to content

Commit

Permalink
Fix the metric name used for InnoDB mutex locks.
Browse files Browse the repository at this point in the history
The metric name ought to be `mysql.innodb.locks'.

Change-Id: I7297ab0822fc945d60fde5b8be849155b74557cd
  • Loading branch information
tsuna committed Aug 21, 2011
1 parent 7142d7f commit c04bc2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collectors/0/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit c04bc2a

Please sign in to comment.