MySQL: add health checks for active connections
Adalbert Michelic committed
Aug 2, 2018 at 12:40 UTC
ae28356a01ff2b727f34c557406ffbb1ac307562
1 file changed
+15
conf.d/health.d/mysql.conf
+15
@@ -59,6 +59,21 @@ template: mysql_10s_waited_locks_ratio
59
to: dba
60
61
62
+# -----------------------------------------------------------------------------
63
+# connections
64
+
65
+template: mysql_connections
66
+ on: mysql.connections_active
67
+ calc: $active * 100 / $limit
68
+ units: %
69
+ every: 10s
70
+ warn: $this > (($status >= $WARNING) ? (60) : (70))
71
+ crit: $this > (($status == $CRITICAL) ? (80) : (90))
72
+ delay: down 15m multiplier 1.5 max 1h
73
+ info: the ratio of current active connections vs the maximum possible number of connections
74
+ to: dba
75
+
76
+
77
# -----------------------------------------------------------------------------
78
# replication
79