add service monitoring on dashboard
Some checks failed
CI / test-build (push) Failing after 2m1s

This commit is contained in:
2025-12-15 00:14:07 +07:00
parent 7c33e736f9
commit 3e64de18ed
4 changed files with 271 additions and 21 deletions

View File

@@ -18,6 +18,12 @@ func (a *App) routes() {
a.mux.HandleFunc("/healthz", a.handleHealthz)
a.mux.HandleFunc("/metrics", a.handleMetrics)
// Dashboard API
a.mux.HandleFunc("/api/v1/dashboard", methodHandler(
func(w http.ResponseWriter, r *http.Request) { a.handleDashboardAPI(w, r) },
nil, nil, nil, nil,
))
// API v1 routes - ZFS Management
a.mux.HandleFunc("/api/v1/disks", methodHandler(
func(w http.ResponseWriter, r *http.Request) { a.handleListDisks(w, r) },