mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-30 17:42:32 +01:00
Agents could read current values and, since list_recent_changes, what changed, but not how a resource's metrics moved: whether a disk filled gradually or suddenly, whether memory climbed before a restart. Pulse records that history for its own charts. get_metric_history (GET /api/agent/metric-history, monitoring:read, on the Pulse MCP surface) takes the canonical resource id the other agent reads return, resolves the resource's metrics target through the registry, and delegates to the chart history read. Agents and charts therefore share tiers, fallbacks, downsampling and the licensed history limit: a window beyond it returns the same license_required error. The history route now accepts the registry's Kubernetes target kinds (pod, k8s-cluster, k8s-node, k8s-deployment) as the k8s store type. The frontend translated them client-side; any other caller passing a target through got a 400.