command
module
Version:
v0.0.0-...-0589d64
Opens a new window with list of versions in this module.
Published: Jan 20, 2024
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-service-monitor
Service monitor and status page.
Monitors for HTTP/HTTPS (200 OK), TCP ports and DNS IP queries.
Requirements
- Go 1.18+. Tested on 1.20.5.
- npm. Tested on 8.1.2.
How to use
Setup
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
Development
-
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
to localhost:8080/api
.
Production
-
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
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.