I have a process I would like to monitor consul-template which is a process currently managed by systemd. I use Pandora to monitor an HTTP endpoint for my other processes, however consul-template doesn't have an HTTP endpoint.
I've thought of a couple of approaches:
One is to launch a HTTP server with python that will run when the consul-template process is run, the problem is I am not sure I can guarantee that the HTTP server will exit when the process exits. Also I can't guarantee that the HTTP server as simple as it is wont crash independently.
The other solution is to install Monit which is a fully featured monitoring service and just use that instead of systemd to do process management too. This approach will mean I have to monitor Pandora AND Monit now and set up alerts accordingly, I would much rather just get an HTTP endpoint up so I can monitor from Pandora only.