Dokku plugin for monit monitoring of apps. Adds a monitrc file in each APP directory which can easily be included in /etc/monitrc. Also reloads monit on deploy/deletion/domain changes.
A lot of the code is based upon the nginx-vhost plugin, included with dokku.
# cd /var/lib/dokku/plugins
# git clone --depth 1 https://github.com/cjblomqvist/dokku-monit monit
Sometimes, it might be needed to manually adjust the permissions of the files, then run
# chmod -R 755 monit
This is still far from complete, but works as a proof of concept of how to use monit with dokku (externally). Ideally, the following would be added:
- Automatically installs monit with
dokku plugins-installand sets /etc/monitrc properly, including access rights (including sudoers) - More flexibility in how templates can be added