diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2018-08-25 12:04:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-25 12:04:34 +0300 |
commit | 80e486193d32c79e1743e18c0a0b515e6b54ce9e (patch) | |
tree | f6043e3e17e219ca8c5ee43d90aab2372c39e13d /conf.d | |
parent | e64642dbd5b2df2e7d86877229073f5a02278dc9 (diff) | |
parent | 1b2afb36460b4606eed2d960163cfa4f8828e9a2 (diff) |
Merge branch 'master' into python-monit-plugin
Diffstat (limited to 'conf.d')
-rw-r--r-- | conf.d/health.d/mysql.conf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/conf.d/health.d/mysql.conf b/conf.d/health.d/mysql.conf index 1eeb993f03..39c401915f 100644 --- a/conf.d/health.d/mysql.conf +++ b/conf.d/health.d/mysql.conf @@ -60,6 +60,21 @@ template: mysql_10s_waited_locks_ratio # ----------------------------------------------------------------------------- +# connections + +template: mysql_connections + on: mysql.connections_active + calc: $active * 100 / $limit + units: % + every: 10s + warn: $this > (($status >= $WARNING) ? (60) : (70)) + crit: $this > (($status == $CRITICAL) ? (80) : (90)) + delay: down 15m multiplier 1.5 max 1h + info: the ratio of current active connections vs the maximum possible number of connections + to: dba + + +# ----------------------------------------------------------------------------- # replication template: mysql_replication |