In this chapter
We'll learn how teams know their software is healthy in production — logs from many servers in one place, monitoring with metrics, dashboards and alerts — and how a rollback undoes a bad release in minutes, followed by a blameless review.
The Problem in Real Life
Anna replays the incident in her head. "At 4:12 PM the screen went red. But I hadn't told anyone anything yet. How did it know?"
John opens the monitoring tool and shows her the graph from that afternoon: a flat line near 1%, a sudden cliff up to 94% at 4:12, and a drop back down at 4:14. "Software can't tell you it's sick. So we measure its temperature every few seconds — and set an alarm."
You can't fix what you can't see.
John
Waiting for Angry Customers vs. Seeing Problems First
Logs on many servers
Four servers each write their own logs. Reading them one by one is too slow in an incident.
Health is a number
"Is it working?" needs numbers: error rate, response time, sales per minute.
Undo, fast
When a release breaks production, every minute costs money. You need an undo button.
Production Logs, Monitoring, Alerts and Rollback
The hospital analogy: a patient in hospital is connected to a monitor that shows heart rate and oxygen all the time, with an alarm if a number goes outside a safe range. Nurses also keep a written chart of everything that happens. And if a new medicine causes a bad reaction, the first step is to stop the new medicine — before anyone investigates why. Production software is treated the same way.
- Logs in production — the written chart, in one place: every server writes logs (Act 17). In production, they're all sent to one central log tool, so you can search all four servers at once by time, level or request ID. Good production logs are often structured — written as JSON with named fields (
level,event,orderId) — so they can be filtered precisely. And they must never contain secrets or full card numbers. - Monitoring — the heart-rate monitor: monitoring means measuring numbers about the system all the time, called metrics: how many requests per second (traffic), how many fail (error rate), how long they take (latency), how busy the servers are (CPU, memory — Act 10), and business numbers like tickets sold per minute.
- Dashboards — the monitor's screen: metrics are shown as live graphs on a dashboard — like the big screen on BlueTicket's wall. One look shows whether things are normal.
- Alerts — the alarm: an alert fires when a metric crosses a line for a while: "checkout error rate above 5% for 1 minute" or "no tickets sold for 10 minutes during the day". It notifies the on-call engineer by phone or chat. Good alerts fire only for real problems that need a human — too many false alarms and people start ignoring them.
- Rollback — stopping the new medicine: a rollback returns production to the previous working version. Because every release is an artifact (chapter two), rolling back simply means deploying v2.6.0 again — the exact one that was running fine an hour earlier. Roll back first, investigate later: the investigation can take hours, but fans need checkout now.
| Metric | Hospital version | BlueTicket example | Alert when... |
|---|---|---|---|
| Error rate | Fever | Checkout errors % | Above 5% for 1 minute |
| Latency | Slow pulse | Checkout response time | Slowest 5% take over 2 seconds |
| Traffic | Breathing rate | Requests per second | Sudden drop to near zero |
| Resources | Oxygen level | Server memory, CPU | Memory above 90% |
| Business | How the patient feels | Tickets sold per minute | None sold for 10 minutes by day |
| Section | Content |
|---|---|
| What happened | Production used the test payment gateway after the v2.7.0 deploy |
| Impact | About 4 minutes, roughly 380 failed payment attempts |
| Detection | Error-rate alert after 1 minute |
| Response | Rollback to v2.6.0 in 2 minutes |
| Causes | New setting copied by hand from staging; no start-up check; manual deploy |
| Actions | Per-environment settings, start-up check, CI/CD pipeline |
{"time": "2026-12-03T16:12:04Z","level": "ERROR","event": "payment_failed","server": "app-3","version": "2.7.0","orderId": "ord_88412","reason": "gateway rejected live card"}
Named fields make it easy to ask "show me every payment_failed on version 2.7.0". Notice: no card number, no secret keys.
The incident, minute by minute: at 4:11, the error rate began rising. At 4:12, it stayed above 5% for one minute, and the alert fired to John's phone and the wall screen. He saw that a deploy had happened two minutes earlier — the most likely cause of any sudden change — and clicked rollback. At 4:14, all four servers were back on v2.6.0 and the error rate was normal. Total: about four minutes of failed payments, instead of hours.
The blameless review: the next morning, the team writes a short post-incident review (sometimes called a postmortem): what happened, the timeline, the impact (about 380 failed payment attempts, most of which fans retried successfully after the rollback), the causes, and the actions. It asks "how did our process allow this?" — never "whose fault is it?" People who fear blame hide mistakes; people who don't, report them early. The actions: per-environment settings (chapter two), the start-up check (chapter two), and a pipeline so nobody deploys by hand (next chapter).
Key Takeaway
In production, logs from every server go to one searchable place (structured, never containing secrets). Monitoring measures metrics — traffic, error rate, latency, resources, business numbers — shown on dashboards, with alerts that wake someone only for real problems. When a release breaks things, roll back first to the previous artifact and investigate later, then write a blameless review that fixes the process.
Why This Matters
No matter how careful a team is, some releases will go wrong. What separates good teams is how quickly they notice (monitoring and alerts), how quickly they recover (rollback), and whether they learn without blame (post-incident reviews). Being calm, honest and quick in an incident is something employers value enormously.
Monitoring caught the problem and rollback fixed it in minutes. But the real cause was a person doing by hand what a machine should do. John and Anna spend the afternoon building something that makes hand-deploys a thing of the past.
