Kubernetes Anomaly Detection: Find What Changed Before an Incident
Use WatchLog’s What changed timeline to find the first unusual metric and verify whether it helps explain a Kubernetes incident.
Checkout latency rises after a deploy, and several charts turn red. The biggest spike might be a symptom, not the starting point. Start with when checkout got slow, then look for the first unusual change that could plausibly have affected it.
Start with the symptom and its time window
Open What changed around the time the symptom began, or follow its link from the alert detail. Pick the episode that covers the first bad requests, not the longest or loudest episode. Read What moved in its default First to move order. The other sort, Furthest out, helps compare severity, but it does not tell you what moved first.
The WatchLog product example above shows search-client latency moving first and the search service following. The example still says No clear cause: it shows an order worth investigating, not a proven incident cause.
Compare against a normal week, not just yesterday
Suppose checkout ordinarily gets busier at 09:00 on Mondays. A traffic increase then may be routine. If the inventory API’s response time leaves its usual Monday range first, and checkout latency rises a few minutes later, inspect the inventory dependency before treating checkout CPU as the cause. The baseline uses the same hour of the week, with up to 14 days of data. It is not a service-level objective: a metric can be within its usual range and still be unacceptable to users.
Use the order to decide what to verify
Check whether the two workloads actually communicate and whether the earlier change fits the failure mechanism. A connection in the map can help establish a path; some arrows can also reflect shared placement on a node. Neither proves cause by itself. Use Changed around then to look for events such as rollouts, image changes or scaling. Did the earlier workload's rollout precede rising response time, and did the caller begin failing afterward? If the deploy followed the failure, do not roll it back just because it is marked near the episode.
The likely-cause walkthrough explains how to check the chain behind a suggested cause. After a fix, verify the original request is healthy again, not just that the chart returned to its normal band.
Know when the baseline is ready
What changed is available on Cloud Pro and licensed self-hosted Enterprise. Cloud Free does not collect a What changed baseline. Each series needs coverage across a full week; gaps can delay readiness, so an upgrade does not immediately explain last night’s incident. A newly unusual period can appear on the page even when the anomaly notification is held after a qualifying change to that workload. Check the timeline rather than assuming no message means no deviation.
See how What changed learns and groups anomalies or explore the live demo.