Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

This branch is 7 commits ahead, 706 commits behind scoutapp:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
log
README
mysql_slow_queries.rb
mysql_slow_queries.yml
test.rb

README

Monitors for slow MySQL queries and generates an alert (containing the queries) whey they occur.

The plugin has two options, the path to your MySQL slow queries log and the threshold for a very slow query.

You must enable the [MySQL slow queries log](http://dev.mysql.com/doc/refman/5.0/en/slow-query-log.html) in your my.cnf file.

This can be done with the following 2 lines:

set-variable=long_query_time=2
log-slow-queries=/var/log/mysql/mysql-slow.log

Something went wrong with that request. Please try again.