Add binary-compatible collection watchdog

This commit is contained in:
Maxim
2026-08-01 17:03:15 +03:00
parent a570537e64
commit 96af2faeb1
2 changed files with 19 additions and 0 deletions

1
web.go
View File

@@ -122,6 +122,7 @@ func routes(collector *cpuCollector, store *Store) http.Handler {
systemHealth := newSystemHealthCollector()
activity := newActivityCollector()
monitor := &monitorTracker{}
go runCollectionWatchdog(monitor)
go runUPSShutdownController(store, ups, guests)
collect := func() (dashboardMetrics, error) {
started := time.Now()