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
fix(dockeragent): use TotalMemoryBytes fallback for memory.Total
rcourtmana978693cb195
diff --git a/internal/monitoring/monitor.go b/internal/monitoring/monitor.goindex a33e16b036..74884577af 100644--- a/internal/monitoring/monitor.go+++ b/internal/monitoring/monitor.go@@ -2007,6 +2007,13 @@ func (m *Monitor) ApplyDockerReport(report agentsdocker.Report, tokenRecord *conSwapUsed: report.Host.Memory.SwapUsed,}}+ // Fallback: if gopsutil's memory reading failed but Docker's TotalMemoryBytes+ // is valid (possibly already a fallback from the agent), use that for Total.+ // This handles Docker-in-LXC scenarios where both Docker and gopsutil may+ // fail to read memory stats, but the agent fix provides a valid fallback.+ if memory.Total <= 0 && report.Host.TotalMemoryBytes > 0 {+ memory.Total = report.Host.TotalMemoryBytes+ }disks := make([]models.Disk, 0, len(report.Host.Disks))for _, disk := range report.Host.Disks {