Skip to content

collectors MySQLCollector

Rob Smith edited this page Jul 25, 2013 · 20 revisions

MySQLCollector

Grants

  • Normal usage
GRANT SELECT, REPLICATION CLIENT on *.* TO 'user'@'hostname' IDENTIFIED BY
'password';
  • For innodb engine status
GRANT SUPER ON *.* TO 'user'@'hostname' IDENTIFIED BY
'password';
  • For innodb engine status on MySQL versions 5.1.24+
GRANT PROCESS ON *.* TO 'user'@'hostname' IDENTIFIED BY
'password';

Dependencies

  • MySQLdb

Options - Generic Options

Setting Default Description Type
byte_unit byte Default numeric output(s) str
enabled False Enable collecting these metrics bool
hosts , List of hosts to collect from. Format is yourusername:yourpassword@host:port/db[/nickname] list
innodb False Collect SHOW ENGINE INNODB STATUS bool
master False Collect SHOW MASTER STATUS bool
measure_collector_time False Collect the collector run time in ms bool
publish Which rows of '[SHOW GLOBAL STATUS](http://dev.mysql.com/doc/refman/5.1/en/show-status.html)' you would like to publish. Leave unset to publish all
slave False Collect SHOW SLAVE STATUS bool

Example Output

__EXAMPLESHERE__

This file was generated from the python source

Please edit the source to make changes

Clone this wiki locally