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
perf: reduce MetricSamples from 100 to 24 points
rcourtman9c58bfa127ed
diff --git a/internal/ai/context/builder.go b/internal/ai/context/builder.goindex 1be2fc1665..913cf5fc5e 100644--- a/internal/ai/context/builder.go+++ b/internal/ai/context/builder.go@@ -486,9 +486,9 @@ func (b *Builder) computeGuestMetricSamples(guestID string) map[string][]MetricPif len(points) < 3 {continue}- // Downsample to ~100 points (~15 min resolution over 24h)- // Modern LLMs have 100k+ token contexts - we can afford detailed history- sampled := DownsampleMetrics(points, 100)+ // Downsample to ~24 points (hourly resolution over 24h)+ // Balances token cost with pattern visibility+ sampled := DownsampleMetrics(points, 24)if len(sampled) >= 3 {samples[metric] = sampled}