About the project
monito is a monitoring microservice that checks HTTP addresses, Docker containers and server resources every minute and sends alerts to Discord. It opens and closes incidents on state changes and counts uptime (the share of time a service is up) with maintenance windows, i.e. planned downtime. Alerts have a repeat limit, so an outage does not flood the channel. It also tracks content changes on chosen pages and handles mail in Mailcow, so the team has alerts, changes and new mail in one place.
The challenge
A full monitoring system is overkill for a few addresses, containers and one server, yet they cannot be left unwatched either. The team also wanted to see new mail and changes on the pages it watches in the same place as the alerts, so one small service had to cover several different jobs.