Service monitor and status page.
Monitors for HTTP/HTTPS (200 OK), TCP ports and DNS IP queries.
- Go 1.18+. Tested on 1.20.5.
- npm. Tested on 8.1.2.
git clone https://github.com/haroflow/go-service-monitor.git
cd go-service-monitor
go run .
cp sample.config.json config.json
cd frontend
npm install
-
Start frontend:
cd go-service-monitor/frontend npm run dev
-
Start backend and monitoring on port 8080:
cd go-service-monitor go run .
-
Open frontend server in browser:
http://127.0.0.1:5173
P.S.: Frontend proxies requests from
/api
tolocalhost:8080/api
.
-
Build frontend to
go-service-monitor/frontend/dist
:cd go-service-monitor/frontend npm run build
-
Build backend and embed frontend:
cd go-service-monitor go build .
-
Run
go-service-monitor
-
Open server in browser:
http://localhost:8080