class DucksboardReporter::Reporters::MySqlInnodbRowsReadsPerSecond

Public Instance Methods

gather_stats() click to toggle source
# File lib/ducksboard_reporter/reporters/mysql_innodb_rows_reads_per_second.rb, line 4
def gather_stats
  out = `mysql -e 'SHOW ENGINE INNODB STATUS\\G'`.scan(/([-+]?[0-9]*\.?[0-9]+) (reads\/s)/)
  out.nil? ? 0 : out[2][0]
end