Dashboard tab: CPU/mem/load, hwmon temps+fans, net, disks, filesystems, UPS with 10-min sparklines

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Mitchell-Johnson
2026-09-17 13:37:39 -07:00
co-authored by Claude Fable 5.1
parent 24d64245ec
commit 3c6f4d4639
10 changed files with 982 additions and 34 deletions
+5 -1
View File
@@ -20,6 +20,7 @@ import (
"hamlab/internal/api"
"hamlab/internal/auth"
"hamlab/internal/config"
"hamlab/internal/metrics"
"hamlab/internal/store"
hterm "hamlab/internal/term"
"hamlab/internal/web"
@@ -136,7 +137,10 @@ func serve(cfg *config.Config) error {
}
}
srv := api.New(cfg, sessions, mgr, web.FS(), version)
col := metrics.NewCollector()
go col.Run(context.Background())
srv := api.New(cfg, sessions, mgr, col, web.FS(), version)
hs := &http.Server{
Addr: cfg.Listen,
Handler: srv.Handler(),