Skip to content

miladrahimi/health-monitor

Repository files navigation

Health Monitor

A simple tool to monitor server health written in Go and web technologies.

How does it work?

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.

Installation

git clone https://github.com/miladrahimi/health-monitor.git
cd health-monitor
cp .env.example .env
docker-compose up -d
docker-compose ps

Configuration

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!

Monitoring

Open your browser, surf localhost with the docker exposed port (default: 7575).

The chart is powered by Chart.js

Demo

Demo

See Also

License

Health Monitor is initially created by Milad Rahimi and released under the MIT License.

About

A simple tool to monitor server health

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages