ComputeCanada / puppet-magic_castle

Puppet Environment repo for Magic Castle - https://github.com/ComputeCanada/magic_castle
MIT License
13 stars 21 forks source link

Monitor the status of some of the services' and host it under status.clustername.tld #377

Open cmd-ntrf opened 2 months ago

cmd-ntrf commented 2 months ago

There are numerous tools that could do monitor, but I like the simplicity of tinystatus: https://github.com/harsxv/tinystatus

The script generates an html file that can be served by a web server of our choice - caddy.

checks.yaml could be generated by Puppet based on the cluster config (i.e.: terraform_data.yaml content).

If the proxy is down, the status page won't be available publicly, but there is a json record file with the timestamp.

The json and html files could be forwarded out of the cluster to alleviate the proxy as a single point of failure for status display.