I've been trying to find a free way to monitor mysql status variables and push a slack notification when certain variables hit a threshold (ie: large number of connections).
At the moment, all the out-of-the-box solutions require massive monitoring tools setting up and some have a cost involved.
Surely its relatively easy just to write a script, but I'm unsure where would be the best place to start this. I'd imagine it would be a cron which would run every 5sec which would get the status variables, if they hit the threshold, call the webhook.
Can anyone make suggestions on the best approach to do this?