Build an Agent Cost Anomaly Detector That Caught a $12K Spike in 8 Seconds in 2026
A recursive tool-call loop burned $12,000 in 47 minutes before anyone noticed. This anomaly detection pipeline uses LangGraph 1.x for orchestration, Prometheus for metrics, and Z-score statistical analysis to detect cost spikes in under 10 seconds, auto-pause the offending agent, and alert the operator.