Introduction
There is a particular kind of phone call every software team dreads. It does not come from a monitoring system. It comes from a customer. "Your site is broken," they say, and the team stares at each other, because as far as they can tell, everything is fine. The servers are running, the dashboards are green, the last deployment went fine. And yet a real person, trying to do something ordinary like check out or reset a password, is hitting a wall.
That gap — between what the team can see and what the user is actually experiencing — is what observability exists to close. It is the ability to ask a system a question you did not know you would need to ask, and get a useful answer.
What Observability Actually Means
The word sounds academic, which is a shame, because the idea is simple. Observability is the ability to understand what is happening inside a system by looking at what it produces from the outside. So you look at the signs the system gives off: the notes it writes, the numbers it reports, and the trail each request leaves behind.
Think of running a small restaurant. You cannot stand in the kitchen watching every plate, every pan, every order ticket, all at once. But you can watch the dining room: how long people wait for food, which tables are unhappy, whether the kitchen is keeping up. If a table has waited forty minutes, you know something is wrong — but to fix it, you need to find out whether the order was lost or the oven broke. Observability is having both views: the dining room, and the kitchen.
In software, the "dining room" is what your users experience: pages loading, payments going through, messages arriving. The "kitchen" is everything behind it: servers, databases, queues, third-party services, all talking to each other. The practical test is three questions: is something wrong, where is it wrong, and why is it wrong? If your tools can answer all three, you have observability. If they can only answer the first, you have monitoring, which is useful but not the same thing.
Logs: The System's Diary
The first of the three pillars is logs. A log is a written record of something that happened, with a time attached. Every time a server handles a request, a program hits an error, or a user logs in, the system can write a line in its log.
Logs are the oldest and simplest kind of observability. A log line reads like a sentence: at 3:14 in the morning, a payment failed, and here is the reason the code gave.
The trouble with logs is volume. A busy website can write millions of log lines a day. Reading them one by one is like reading a diary written at a hundred pages an hour — the answer is in there somewhere, but finding it is the work. So teams make their logs searchable, so they can ask for all the lines about one particular user, or one particular error, in the last ten minutes. And they keep the lines useful: a good log line says what happened, when, and to whom, in words a person can read. A bad one says "error 500" and nothing else, which is the equivalent of a diary entry that just says "bad day".
Metrics: The Numbers on the Dial
The second pillar is metrics. A metric is a number measured over time: requests per minute, how long they took, how much memory is in use, how many errors happened. If logs are the diary, metrics are the dials on a car's dashboard.
Metrics are good at the opposite of what logs are good at. A log tells you about one event in detail. A metric tells you about a million events in summary. A single graph of response times shows in seconds what a million log lines cannot. That is why metrics are the first thing most teams set up, and the first thing anyone looks at when something feels wrong.
Google's site reliability engineers wrote down the short list almost every team watches:
- Latency — how long requests take. Not the average, which hides the worst cases, but the slow end: how long the slowest 5% of requests took.
- Traffic — how many requests are arriving. A sudden drop can mean the site is unreachable; a sudden spike can mean a crowd, or an attack.
- Errors — how many requests are failing, and how fast that number is growing.
- Saturation — how full the system is: how much memory, disk, or processor is in use, and how close to the limit it is running.
Those four are often called the golden signals. If latency jumps or errors climb, something is wrong, even if nobody can yet say what. Their weakness is that they rarely tell you why. A graph can show checkouts started failing at 2pm. It cannot show why — for that, you need the third pillar.
Traces: Following One Request Through the System
The third pillar is traces, and it is the one that changed the game. A trace follows a single request as it travels through the system, from the moment it arrives to the moment the answer goes back. Every stop along the way — the web server, the login service, the database, the payment provider — adds its name and how long it took.
The everyday analogy is a parcel. When you order something online, you get a tracking number. You can see that the parcel left the warehouse at 9am, arrived at the depot at noon, sat there for three hours, and was delivered at 5pm.
Modern software is rarely one program. A single click can pass through a dozen services: one checks who you are, one loads your profile, one checks the stock, one talks to a payment company, one sends a confirmation email. When the click is slow, any one of those services could be the cause, and looking at each one separately is guesswork. A trace shows the whole journey on one line, and the slow step stands out like a parcel sitting at a depot for three hours.
Traces also make the other two pillars useful. A metric says checkouts are slow. A trace says this particular checkout spent four seconds waiting on the payment provider, while everything else took milliseconds. A log says the payment provider returned an error at 2:03pm.
Monitoring Is Not Observability
The two words get mixed up constantly, and the difference is the point of this whole article. Monitoring is watching for things you already know can go wrong. You decide in advance what to check — is the server up, is the disk full, is the error rate above 5% — and the system tells you when one of those checks fails.
Observability is the ability to investigate things you did not expect. Nobody writes an alert for "the payment provider changed its response format on a Tuesday". But when checkouts start failing for a reason nobody predicted, an observable system lets a person dig in: pull up the traces for the failing checkouts, see they all stop at the same service, read the logs from that service, and find the cause. Monitoring tells you the house is on fire. Observability lets you find out which room it started in, and what was plugged in there.
The two work together, and a good team has both. Monitoring is the alarm that wakes you up. Observability is the torch you carry once you are awake.
The practical difference shows up in how teams spend their time. Teams without observability spend their incidents guessing: restarting services, rolling back the last change, hoping the problem goes away. Teams with it spend their incidents looking, and the fix is usually obvious once the cause is visible. The first kind of incident takes hours. The second takes minutes. And there is a useful rule of thumb, from the way DevOps teams think about their work: if the only way you can find out what went wrong is to add new logging and wait for the problem to happen again, your system is not observable enough.
The 3 a.m. Alert: A Story in Three Acts
Picture a team that runs a small online shop. It is 3 a.m., and someone's phone buzzes. The error rate on checkouts has jumped from almost nothing to one in five. Here is how the next thirty minutes go when the team has observability — and how they go when it does not.
First, the metric. The alert itself comes from a metric: the error rate, one of the golden signals. Within a minute of waking up, the engineer on call can see the shape of the problem. The errors started twenty minutes ago, they are climbing, and they only affect checkouts — browsing and searching are fine. That rules out half the possible causes: the site is not down, and the database is not dead.
Second, the trace. The engineer pulls up a trace of a failed checkout. The journey is laid out like a parcel's tracking page: the web server answered in milliseconds, the basket service was fine, the payment step took four seconds and then failed. Every failed checkout shows the same pattern. The problem is not in the shop's own code at all — it is in the step where the shop talks to its payment provider.
Third, the log. The engineer opens the logs from the payment step for the last half hour and reads what the payment provider actually said. There it is: the provider started returning a new error message twenty minutes ago, at almost exactly the moment the failures began. The shop's code does not understand the new message, so it treats every payment as failed. The fix is clear.
Without the three pillars, the same night goes very differently: the engineer restarts the web server, then the database, then rolls back the last deployment — which was two days ago and had nothing to do with it — and the shop loses hours of sales while nobody gets wiser. The difference is not talent or effort. It is having the evidence in front of you.
When Nobody Can See: Facebook, October 2021
The worst version of this story is not a small shop at 3 a.m. It is one of the biggest companies on earth losing the ability to see its own systems. On 4 October 2021, Facebook, Instagram, WhatsApp and Messenger vanished from the internet for nearly six hours, affecting more than 3.5 billion users.
The cause was not a hacker and not a power cut. During routine maintenance, a command took down the links between Facebook's own data centres. That alone would have been bad. What made it catastrophic was that the tools the engineers needed to fix it ran on the same network that had just broken. The systems that would have told them what was wrong were unreachable through the very failure they were supposed to diagnose. Engineers reportedly had to travel to a data centre in person to get access, because even their office badges ran on the affected network. It took nearly six hours to bring everything back.
The lesson is one the observability world repeats constantly: your ability to understand a system must not depend on the system itself. The monitoring, the logs, the traces — they need to live somewhere the failure cannot reach, or the day you need them most is the day they are gone too.
There is a second famous example that makes the same point from the other direction. On 1 August 2012, the trading firm Knight Capital lost $440 million in about 45 minutes — roughly $10 million a minute — because a software glitch sent its computers buying and selling shares out of control. Both stories are about the same thing: when a system fails faster than the people running it can understand it, the cost is measured in hours and millions.
Alerts That Help, and Alerts That Wake Everyone for Nothing
Having the data is only half the job. The other half is deciding when to wake a human being up, and this is where many teams go wrong. An alert is a promise: this is worth interrupting someone's sleep. Break that promise often enough, and people stop believing the alerts — then the one that mattered gets ignored too. Engineers call this alert fatigue, and it is one of the most common ways a good monitoring setup quietly becomes useless.
The rule that separates a good alert from a bad one is simple: alert on symptoms users feel, not on causes you guess. "Checkout errors are above 2%" is a symptom — real people are failing to buy things. "The server's processor is at 90%" is a guess at a cause: a busy processor might be perfectly fine, and a quiet one might belong to a server that has stopped answering entirely. Alert on the first kind. Watch the second kind on a dashboard.
A few habits keep alerts honest:
- Every alert should have an owner and an action. If the alert fires and nobody knows what to do about it, it is not an alert, it is a noise. Delete it or fix it.
- Count the alerts. A team that gets woken up more than once or twice a week has too many alerts, or alerts set too sensitively.
- Review the ones that fired. After an incident, ask whether the alert fired at the right time, whether it said anything useful, and whether anyone acted on it.
- Let people sleep when nothing is wrong. The goal is not more alerts. The goal is fewer, better ones, so that when the phone buzzes at 3 a.m., everyone in the team believes it.
What a Small Team Needs to Start
By now this might sound like a big-company concern, all data centres and billions of users. It is not. Small teams need observability more, not less, because they have fewer people to throw at a problem and less time to waste guessing. The good news is that starting is cheaper and simpler than it looks. You need three things, done well.
First, structured logs. When your code writes a log line, make it easy to search: include the time, the user or request it belongs to, and what happened, in a consistent format. You do not need a fancy tool for this. You need a habit.
Second, a handful of metrics. Start with the golden signals — latency, traffic, errors, saturation — for the one or two things your users care about most. For most small teams that means the main user journey: can people load the site, can they log in, can they pay?
Third, one trace. You do not need to trace every request through every service on day one, especially if your system is still small enough that one program does most of the work. But if your system already has several services talking to each other — and that is exactly the point where problems start hiding between services — then tracing the main user journey is the single most useful thing you can add. A load balancer that checks whether your servers are healthy is a good start, but a trace shows you what happens after the request gets past it.
A few more things help, and none of them cost much. Keep your observability data somewhere separate from the system it watches, so a failure cannot take both down — the Facebook lesson. And after every incident, spend twenty minutes asking what would have found the problem sooner, then add that one thing. Observability grows like that, one question at a time.
It also helps to think about this alongside how the team ships software. Teams that deploy often, in small steps, through automated pipelines, can trace a new problem back to a small recent change. And as a system grows into many small services — the shape described in the debate over microservices versus a single monolith — traces become more important, because one request crosses more boundaries.
Conclusion
Observability is a grand word for a practical habit. A system you cannot understand is a system you cannot fix, and the only question is whether you discover that on a quiet afternoon or at 3 a.m. with customers calling. Logs tell you what happened. Metrics tell you something is wrong. Traces tell you where. Together, they turn a mystery into a job of work: find the slow step, read the error, fix the cause.
You do not need to be large, or to buy anything expensive, to start. You need searchable logs, a handful of numbers that reflect what your users actually experience, and a way to follow one request through your system. Keep alerts for things users would notice, and the evidence somewhere a failure cannot reach. And after every incident, add the one thing that would have found it sooner.
The teams that do this still have problems — every system does. They are the ones whose problems are short, because the moment something breaks, someone can see it, find it, and fix it — usually before the users ever notice. That is the whole promise, and it is a modest one: not a system that never fails, but a team that is never blind.
Frequently Asked Questions
What is the difference between observability and monitoring? Monitoring watches for problems you already know about: you set a threshold, and the system tells you when it is crossed. Observability is the ability to investigate problems you did not expect, by asking new questions of the data your system already produces.
Do I need observability if my app is small? Yes, in a small way. A small app has fewer moving parts, but when something breaks, you still need to know what happened, and you still have fewer people to find out. Searchable logs, a few metrics on the main user journey, and a way to follow one request through the system will save you more time than they cost.
What are the three pillars of observability? Logs, metrics and traces. Logs are written records of individual events, with a time attached. Metrics are numbers measured over time, like response times and error rates. Traces follow one request as it travels through the system, showing every service it visited and how long each step took.
Is observability a tool I can buy? Not really, though plenty of companies sell tools that help. Observability is a property of your system and a habit of your team: collecting useful data, keeping it searchable, and actually using it to investigate. A tool can store logs and draw graphs, but it cannot decide what to log or which question to ask.
How do I know if my system is observable enough? Try this test: pick a problem you have not seen before — say, one particular user cannot check out, while everyone else can — and see whether you can find the cause from the data you already collect, without adding new logging and waiting for it to happen again. If you cannot, the gap you hit is exactly the thing to fix first.
Comments
Post a Comment