Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

debug: add logging to verify MetricSamples population for LLM context

rcourtmanf6b1414ed675
diff --git a/internal/ai/context/builder.go b/internal/ai/context/builder.go
index 1a4d345a97..26b19873ec 100644
--- a/internal/ai/context/builder.go
+++ b/internal/ai/context/builder.go
@@ -493,6 +493,14 @@ func (b *Builder) computeGuestMetricSamples(guestID string) map[string][]MetricP
}
}
+ // Debug: log if we're returning samples
+ if len(samples) > 0 {
+ log.Debug().
+ Str("guestID", guestID).
+ Int("metricCount", len(samples)).
+ Msg("AI Context: Built metric samples for LLM")
+ }
+
return samples
}