What it is
Incident investigation is the work between "users are hurting" and "users are fine and we know why": detecting the problem, organising a response, restoring service, and finding the cause. It is a process as much as a technical skill, and it relies on the signals (metrics, logs, traces) being in place before anything breaks.
Why it exists
Every production system fails eventually. What decides the impact is how fast you notice, how fast you restore service, and whether you learn enough to prevent a repeat. Without a practised process, teams debate root causes while users wait, or several people change things at once and make it worse.
How it works
Detect. Alert on symptoms users feel, ideally SLO burn rates, rather than on every possible cause. Compare against known baselines: RED metrics per service and per dependency, deploy and config history.
Organise. Declare an incident, name an incident commander who coordinates and decides, someone for communication (status page, stakeholders) and the people investigating. Keep a running timeline.
Scope. One instance or all? One route, one region, one customer segment? Errors spread evenly over all instances point at something they share: a dependency, a config pushed everywhere, the network. A single bad instance stands out in a per-instance breakdown.
What changed? Most incidents follow a change: deploys, config, feature flags, traffic patterns, dependency changes. If a change is plausible and reverting it is cheap and safe, revert first. A rollback that does not help is still useful: it rules a hypothesis out quickly.
Follow the time. Traces show where the waiting ends; dependency latency and saturation metrics confirm it; logs filtered by trace id show the exact errors. Look for the component with high self time or a saturated resource, not the one that merely reports the highest latency.
Mitigate. Restore service before fixing the root cause: roll back, fail over to a secondary provider or region, disable a feature flag, shed load, add capacity where it is the bottleneck. Runbooks list these steps for known failure modes.
Resolve and review. Once stable, fix the root cause and write a blameless postmortem: timeline, impact (for example, error budget spent), contributing factors, what went well, and action items with owners.
When to use it
For any user-visible degradation, including partial ones (one region, one feature, elevated latency). Declaring an incident early is cheaper than declaring it late; you can always downgrade.
When not to
- Not every alert is an incident: a single retried failure or a noisy alert needs tuning, not an incident bridge.
- Avoid deep root-cause analysis while users are still affected, unless it is the fastest path to mitigation.
Trade-offs
| Choice | You gain | You pay |
|---|---|---|
| Roll back first | Fast restoration, quick elimination of a hypothesis | Delays the fix that was in the release |
| Fail over to a secondary | Service restored despite an external cause | Cost of a standby, maybe slower or pricier path |
| Declare incidents early | Coordination before confusion | Occasional false alarms |
| Strict incident roles | Clear decisions, less chaos | Overhead for small issues |
| Detailed postmortems | Lasting fixes, shared learning | Time spent writing and reviewing |
Alternatives
- Automated remediation (auto-rollback on canary failure, circuit breakers with automatic failover) handles known failure modes without humans.
- Chaos engineering and game days rehearse incidents in advance so the real one is familiar.
- AIOps / anomaly detection can suggest correlations, but still needs humans to validate causes and decide mitigations.
Failure modes
- Hero debugging: one person digging alone while nobody communicates or coordinates.
- Root cause before mitigation: users wait while the team proves a theory.
- Too many cooks: several people change things at once; the effect of each change is unknowable.
- Fixing the symptom where it shows: adding capacity to a saturated service whose workers are waiting on a slow dependency only lets more requests wait.
- Blameful reviews: people hide information next time, and the system's gaps stay.
- Action items nobody owns: the same incident recurs.
In production
Keep on-call rotations with clear escalation, alerts linked to runbooks, dashboards per user journey and per dependency, a deploy timeline overlaid on graphs, and trace links from logs and exemplars. Practise with game days. Track time to detect and time to mitigate, and follow up on postmortem actions.
Common misconceptions
- "First find the root cause." First restore service; root cause can wait an hour, users cannot.
- "The deploy is always the cause." Often, but check timing and scope; roll back if cheap, then move on.
- "The busiest service is the culprit." A saturated service may just be waiting on its dependency.
- "A postmortem finds who made the mistake." It finds where the system made the mistake easy and the impact large.
Interview angle
Asked "the site is slow, what do you do?", walk through: check the SLO dashboard and scope, look for recent changes, mitigate (rollback, failover, shed load), then use traces, dependency metrics and logs to find the cause, and finish with a blameless postmortem and preventive measures such as timeouts, circuit breakers, bulkheads and alerting on dependency latency.
Model assumptions
Simulated: two API servers (16 workers, 20 ms, 10 waiting), a Payments service (16 workers, 15 ms, 8 waiting) and an external payment provider (32 workers, 80 ms, 30 ms away); callers hold a worker while they wait. The degraded provider is 6× slower (480 ms per call); the backup provider takes 100 ms. Errors, latencies, saturation and span durations in the text come from the simulation. The alert, the deploy history, incident roles, log lines and the trace walk-through are annotations and scripted packets; there is no per-call timeout in the model, which is why the postmortem recommends one. Arrivals are Poisson, service times lognormal. Numbers show behaviour, not benchmarks.