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: metrics store tier fallback for mock mode sparklines
rcourtman35eedcb5ac83
diff --git a/pkg/metrics/store.go b/pkg/metrics/store.goindex eab5bdfc35..3b6d79d69e 100644--- a/pkg/metrics/store.go+++ b/pkg/metrics/store.go@@ -541,9 +541,11 @@ func (s *Store) selectTier(duration time.Duration) Tier {func (s *Store) tierFallbacks(duration time.Duration) []Tier {switch s.selectTier(duration) {case TierRaw:- return []Tier{TierRaw}+ // Fall back to coarser tiers when raw is empty (e.g., mock mode with seeded data)+ return []Tier{TierRaw, TierMinute, TierHourly}case TierMinute:- return []Tier{TierMinute, TierRaw}+ // Fall back to coarser tiers when minute is empty (e.g., mock mode with seeded data)+ return []Tier{TierMinute, TierRaw, TierHourly}case TierHourly:return []Tier{TierHourly, TierMinute, TierRaw}case TierDaily: