Thread saturation, memory spikes, restarts — often one root cause. Here's how to build an agent that finds it.