Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Keep missing health telemetry non-green
pulse-triage[bot]8cd65a3f246a
diff --git a/internal/unifiedresources/health.go b/internal/unifiedresources/health.goindex ca20899f38..48eeff0633 100644--- a/internal/unifiedresources/health.go+++ b/internal/unifiedresources/health.go@@ -89,6 +89,13 @@ func EvaluateResourceHealth(resource Resource, alerts []ResourceHealthAlert, nowswitch strings.ToLower(strings.TrimSpace(string(resource.Status))) {case "online", "running", "ready", "healthy", "available", "active", "up":+ // A positive provider status without an observation timestamp is not+ // enough to prove current health. Some compatibility and synthetic+ // producers do not populate SourceStatus, so keep this guard at the+ // canonical verdict boundary rather than relying on that map alone.+ if resource.LastSeen.IsZero() {+ return healthWithReason(HealthUnknown, "telemetry_missing", "")+ }return ResourceHealth{Verdict: HealthOK, Reasons: []ResourceHealthReason{}}case "warning", "degraded", "unhealthy", "pending":return healthWithReason(HealthAttention, "degraded", "")diff --git a/internal/unifiedresources/health_test.go b/internal/unifiedresources/health_test.goindex 3898a94a69..c51de693e4 100644--- a/internal/unifiedresources/health_test.go+++ b/internal/unifiedresources/health_test.go@@ -59,6 +59,11 @@ func TestEvaluateResourceHealthPrecedenceAndVerdicts(t *testing.T) {resource: Resource{ID: "host-3", Type: ResourceTypeAgent, Status: StatusOnline, LastSeen: now},want: HealthOK,},+ {+ name: "positive status without telemetry cannot be healthy",+ resource: Resource{ID: "host-missing", Type: ResourceTypeAgent, Status: StatusOnline},+ want: HealthUnknown, code: "telemetry_missing",+ },{name: "informational alert does not invent attention",resource: Resource{ID: "host-info", Type: ResourceTypeAgent, Status: StatusOnline, LastSeen: now},