Monitoring Go Applications with Monit
boakye.yiadom.org
boakye.yiadom.org
Have used monit instances on every server I manage for nearly 10 years and have been using m/monit since about a year ago (finally provided them with some money after all these years) and with it, I can check every servers' health from a single web app, I can make alert message to Mattermost (or anywhere else as it can run custom script) and its performance metric graph capability is good enough I dropped munin for it.
The great thing about it is that it's absolutely lightweight and its config files are so easy to understand and has broad checking mechanism. I can also check SSL certificate ages and in case certbot fails to renew them, I get warned well before the expiration date.
#! /bin/sh
...
source /lib/lsb/init-functions
and have it not work on systems where /bin/sh is (say) the Debian Almquist shell. (-: if total memory usage > 80% for 2 cycles then restart