A simple tool to monitor server health written in Go and web technologies.
It stores health-check API response time in Redis storage every minute for each API. To increase the accuracy, it calls each API every 20 seconds and updates the result stored in the storage. So even if one or two of the calls failed, there would be a response time for that minute.
git clone https://github.com/miladrahimi/health-monitor.git
cd health-monitor
cp .env.example .env
docker-compose up -d
docker-compose ps
Open .env
with a text editor and change the environment variables.
Environment variables:
- APP_EXPOSED_PORT: The exposed port for web app
- TARGETS: The comma-separated list of health-check endpoints to call
- TIMEZONE: The timezone!
Open your browser, surf localhost with the docker exposed port (default: 7575).
The chart is powered by Chart.js
- Ping Monitor: A simple tool to monitor server pings
Health Monitor is initially created by Milad Rahimi and released under the MIT License.