BEGINNERCHAPTER 01

What observability is and what it is not

A property of a system, not a product you buy: can you answer a question nobody thought to ask, without shipping new code?

40 MINOBSERVABILITYUPDATED 2026-11-02
PREDICT

A team has 400 Grafana dashboards, alerts on every service's CPU, memory, error rate and latency, and 90 days of log retention. A user reports that their checkout takes 8 seconds while everyone else's takes 200 ms. Which statement is most likely true?

Observability is a word that has been sold so hard that it is worth starting from what it meant before anyone sold it. Then you can decide, for any system you run, whether it has the property or not, and the rest of this course becomes a set of techniques for getting it.

Where the word comes from

In 1960 Rudolf Kálmán, working on the control of linear dynamical systems, defined two properties. A system is controllable if you can drive it from any internal state to any other by choosing its inputs. A system is observable if you can determine its complete internal state from a finite record of its outputs. The two are mathematical duals, and both are yes-or-no properties of the system itself, not of the person looking at it.

The definition carries two ideas that survive the move to software. First, observability is about internal state inferred from outputs. You do not get to open the box; you get what the box emits. Second, it is a property of the system. A system either emits enough for you to reconstruct what happened inside, or it does not. A tool cannot grant it after the fact. A tool can only store and query whatever the system chose to emit.

For a service, the outputs are its telemetry: whatever it writes about itself as it runs. The internal state is what you need to know during an incident: which code path ran, with which inputs, how long each step took, what it called and what came back. If the telemetry lets you reconstruct that for any request you care about, the system is observable. If you have to guess, add a print statement and redeploy, it is not.

The working definition

The definition most practitioners use, due largely to Charity Majors and the team at Honeycomb, is this:

A system is observable if you can understand any state it got into, however novel, by asking questions of its telemetry from the outside, without shipping new code to answer them.

Each clause does work.

Any state, however novel. The interesting failures are the ones nobody predicted. A disk filling up is predictable, and you have an alert for it. A user whose cart has 312 items triggering a quadratic loop in the discount code is not predictable, and you have no alert for it. Observability is measured on the second kind.

Asking questions. Not reading a dashboard. A dashboard is an answer to a question somebody asked last quarter. During an incident the question you have is new, and what you need is the ability to form it and get an answer in seconds: show me the slow requests; group them by user; what do the slow ones have in common that the fast ones do not; show me one of them end to end.

Without shipping new code. This is the hard part and the test. If answering your question requires adding a log line and deploying, then waiting for the problem to recur, your system was not observable with respect to that question. The telemetry it emitted did not carry the state you needed. The engineering work of observability is choosing, in advance, to emit enough context on every request that the questions you will have at 03:10 are answerable from what is already stored.

Put bluntly: you cannot know in advance which question you will need. So the only strategy that works is to emit rich context about every unit of work, keep it in a form that supports arbitrary slicing, and make the slicing fast.

Monitoring is not observability

Monitoring is older, and it is still necessary. It means watching a set of signals you chose in advance against thresholds you chose in advance, and paging someone when a threshold is crossed. Disk over 90 percent. Error rate over 1 percent for five minutes. Queue depth over ten thousand. Google’s SRE book calls this white-box monitoring and gives it four golden signals: latency, traffic, errors and saturation.

Monitoring answers the question “is the system healthy, by the definition of healthy I wrote down?” It is good at that. What it cannot do is tell you why, or tell you about a failure you did not define. The table is the shortest way to say it.

Monitoring Observability
Question Is it broken, by my definition? Why is it behaving like this?
Questions are formed before the incident during the incident
Data shape pre-aggregated: a number per time bucket per label set per-request: every unit of work with all its context
Handles known failure modes novel failure modes
Cardinality low; labels are chosen to keep series counts bounded high; user id, request id, build sha, anything
Output an alert, a dashboard an answer, and a next question
Cost model cheap per data point, expensive per new question (you redeploy) expensive per data point, cheap per new question

The two are not rivals. You page on monitoring and you debug with observability. A team with only monitoring knows that something is wrong and spends the incident guessing. A team with only observability has nobody awake to look. The alerting module of this course is entirely about the first column; the debugging and wide-events chapters are entirely about the second.

Known unknowns and unknown unknowns

A useful way to classify a failure is by whether you predicted it.

A known unknown is a failure mode you anticipated but do not know the current state of. Will the disk fill? Will the certificate expire? Will the dependency time out? You do not know when, but you know what to watch, so you write an alert. Monitoring is the technology of known unknowns.

An unknown unknown is a failure mode you never considered, so you have no alert, no dashboard, and often no word for it until you have seen it. A particular combination of client version, feature flag and region that causes a retry loop. A customer whose data shape makes one query plan collapse. Most of the long incidents in any postmortem archive are unknown unknowns, because the known ones get alerts and get fixed fast.

The practical consequence is about where you spend effort. Each known failure mode you convert into an alert is worth doing, but the set is finite and you will reach diminishing returns. The unknown unknowns are unbounded, and the only preparation that works is general: emit enough context that when the new thing happens you can see it. That is why observability is an investment in telemetry richness rather than in more dashboards.

Why microservices and ephemeral infrastructure made it urgent

Twenty years ago a typical web application was one process on one long-lived server, with a log file. Debugging was: SSH in, tail the log, attach a profiler if needed. Monitoring was enough, because when monitoring said “slow”, you went to the one box and looked. Observability existed implicitly: the log file was the output and the one process was the state.

Three things broke that.

One request now crosses many processes. The demo app in this course has three services; a real system has fifty to five hundred. A checkout request touches a gateway, an orders service, a payments service, a database and a cache. The latency of one request is the sum of hops nobody owns end to end. When it is slow, the question “which hop?” has no single log file to answer it, and each service’s log is interleaved with every other request it was handling at the same moment.

Infrastructure is replaced constantly. Containers are scheduled, killed and rescheduled. Autoscalers add and remove instances by the minute. The host that served the failing request at 03:10 may not exist at 03:15. SSHing to it is not an option, so everything you will ever know about that request had better have been emitted while it was running and shipped somewhere durable.

Deploys are continuous. Dozens of versions a day across the fleet means that at any moment, two versions of a service are serving traffic. “Is the slow path on the new version?” is a question that needs the build id on every record.

The combination means the old implicit observability is gone. Nothing is on one box, nothing stays, and nothing is one version. Telemetry has to be explicit, emitted per request, carrying enough context to reassemble a request’s path across processes, and stored centrally. That is the whole engineering agenda of this course.

The cost of not having it

The cost shows up in three places, and all three have numbers attached.

Time to restore. The DORA research programme measures time to restore service as one of its four key metrics; elite performers restore in under an hour, low performers take between a week and a month. The gap is mostly not fixing time. It is finding time: the hours between “something is wrong” and “we know what is wrong”, during which the system has to be observable or the team is guessing. Each guess is a deploy, a config change, or a restart that may make things worse.

On-call load. An unobservable system pages people for symptoms and leaves them to find causes. Each page becomes a 45-minute investigation instead of a 5-minute confirmation. People who are paged at 03:10 and cannot find the cause leave; the observability-as-a-product chapter in module five covers this as the central adoption problem, but you can feel the shape of it already.

Change velocity. Teams that cannot see what a deploy did deploy less often and in bigger batches, which makes each deploy riskier, which makes them deploy less often. Observability is the thing that makes a small deploy cheap: ship, watch the new version’s requests next to the old version’s, roll back in two minutes if they differ.

Observability has a cost too, and a large one: telemetry volume is a real bill, and module four spends five chapters on it. The honest comparison is between that bill and the engineer-hours of the incidents above. Most teams that measure both find the telemetry cheaper, and most teams that do not measure cut telemetry first.

The three pillars, and why people argue about them

You will hear that observability has three pillars: logs, metrics and traces. The next chapter is about those three in detail, so for now the definitions are brief. A log is a timestamped event with some text or fields. A metric is a number aggregated over time and over a set of labels. A trace is the tree of timed operations one request caused across services.

The three-pillars framing is useful because the three really are different data shapes with different cost profiles and different strengths. It is also the way the industry packaged itself around 2017: a logging product, a metrics product, a tracing product, each with its own storage and query language.

The criticism, which started with Ben Sigelman’s “Three Pillars with Zero Answers” talk in 2018 and which Charity Majors has pressed since, is this. Pillars are not a definition; they are a list of storage formats. Having all three does not give you observability, because the hard questions cross them: the metric tells you p99 went up, the trace would tell you why, but you cannot get from the metric to the trace that represents it unless the two share an identifier, and in three separate products they usually do not. You end up copying a timestamp from one tab into another and squinting. Sigelman proposed grading an observability setup on how well it detects variance and how well it explains it, not on which pillars it has. Majors argues that “pillar” is a marketing word, that the correct word is “signal”, and that the goal is one store of rich per-request events from which metrics and traces are views.

OpenTelemetry, which you will use from the next chapter on, uses the word signal, carries a shared trace id across all three, and is adding profiles as a fourth. The practical position this course takes: the three signals are real and you need to understand what each cannot do. The three pillars as three products is the trap. Correlation is what turns three stores of data into one source of answers.

What this means for the demo app

The lab stack for this course is a deliberately small system: a gateway that handles GET /checkout, an orders service that writes to Postgres, a payments service that uses Redis for idempotency keys, and a load generator sending five requests a second from a mix of a thousand users. Faults are planted and switched on by environment variables.

In this chapter you run it with every form of telemetry switched off: OTEL_SDK_DISABLED=true, plain text logs, nothing exported anywhere. Then you turn on one fault, FAULT_SLOW_PAYMENTS_PCT=5, which makes 5 percent of payment charges sleep for between 1.5 and 3 seconds, and you try to answer the question every on-call engineer gets: why is checkout slow for user 42? You have docker compose logs and curl. The point of the lab is not to succeed. It is to write down precisely which questions you could not answer and why, so that in the next five chapters, as each signal is added, you can tick them off.

LAB Try to debug with nothing ~25 MIN
YOU NEEDDocker Desktop or Docker Engine with Compose v2the ATLAS repo cloned (labs/observability)curl and a shell; jq is helpful

You will run the demo app with telemetry off and a fault on, then attempt an investigation with only container logs. Keep a scratch file open and record each question you cannot answer.

1. Start the app with telemetry disabled and the fault on.

cd labs/observability
OTEL_SDK_DISABLED=true LOG_FORMAT=text FAULT_SLOW_PAYMENTS_PCT=5 docker compose up -d
docker compose ps
Six containers running: gateway (8080), orders (8081), payments (8082), db (Postgres, on host port 5433) and redis (6379), plus loadgen. No Prometheus, Grafana, Loki or Tempo: those are behind the telemetry profile, which you did not enable. The load generator is already sending 5 requests per second across users 1 to 1000.

2. Reproduce the complaint.

for i in $(seq 1 40); do
  curl -s 'http://localhost:8080/checkout?user=42&items=3' | jq -c '{order_id, status, ms}'
done
Forty lines like {"order_id":18231,"status":"paid","ms":41.3}. About two of them have ms between 1500 and 3000. The complaint is real and reproducible: roughly one checkout in twenty is thirty to seventy times slower than the rest. You know that it happens. You do not yet know where the time goes.

3. Look for it in the gateway logs.

docker compose logs --since 2m gateway | tail -n 30
Plain text lines, two per checkout: request method=GET route=/checkout status=200 ms=41.3 and checkout ok user=42 items=3 vip=False order_id=18231 ms=40.9, each after a timestamp, level and service name. Your slow requests are in there, mixed with the load generator’s. There is no field saying how long the orders call took versus anything else the gateway did. Question one you cannot answer: of the 2000 ms, how much was spent downstream and how much in the gateway itself?

4. Follow the request downstream by hand.

docker compose logs --since 2m orders payments | grep -E "route=/(orders|charge)" | tail -n 40
Lines from both services, interleaved in the order Docker received them. Nothing in an orders line points at the gateway request that caused it; nothing in a payments line points at the order. The only shared field is the wall-clock timestamp, and with the load generator running there are ten to fifteen requests in flight in any given second. Question two: which payments call belongs to your slow checkout? You can narrow by timestamp, and you will usually be wrong.

5. Try to get a latency distribution.

docker compose logs --since 5m gateway | grep ' request method=' | grep -oE 'ms=[0-9.]+' | cut -d= -f2 | sort -n | awk '{a[NR]=$1} END {print "n="NR, "p50="a[int(NR*0.5)], "p99="a[int(NR*0.99)], "max="a[NR]}'
Something like n=1512 p50=38.2 p99=2210.4 max=2994.1. You can compute a percentile from logs, once, with a shell pipeline, over five minutes. You cannot see how it moved over the last day, you cannot alert on it, and the pipeline breaks the first time a log line changes format. Question three: is this new? Since when? Without a time series you cannot tell whether the fault started an hour ago or has always been there.

6. Try to answer the actual question.

The question was: why is checkout slow for user 42? Try to answer it from what you have.

docker compose logs --since 5m payments | grep -ciE "slow|sleep|timeout"
docker compose logs --since 5m payments | grep -c "user=42"
0 and 0. The payments service does not log the word slow, because from its own point of view it is not failing: it did the charge and returned 200. And it does not know the user id at all; it receives an order id and an amount. The information that would answer the question, which service the time went to and whether it correlates with the user, is split across three processes that share no identifier. You have now hit the definition: answering this requires changing the code (add a request id, add per-hop timings, log them) and redeploying. The system is not observable with respect to this question.

7. Write down the list. Before moving on, record in your scratch file the questions you could not answer. The list should contain at least: which hop the time went to; which downstream log lines belong to this request; whether the slowness is specific to user 42 or affects everyone; the p99 over time and when it changed; and whether the slow requests share anything (items, VIP status, version). Keep the file. The three-signals chapter answers the first two, the metrics chapter answers the third and fourth, and the project at the end of this module answers the last.

Raise the load: LOADGEN_RPS=50 docker compose up -d loadgen, then re-run step 4. At 50 requests per second the two-minute window has six thousand lines and the timestamp-matching you were doing in step 4 becomes impossible: your slow request has thirty neighbours in the same second. Then switch the fault off, FAULT_SLOW_PAYMENTS_PCT=0 docker compose up -d payments, and ask yourself how you would prove to the customer that it is fixed. You cannot, except by running step 2 again and hoping; a system you cannot observe is also a system whose fixes you cannot verify. Put the load back before the next chapter: docker compose up -d loadgen returns it to the default 5 requests per second.
DECIDE

You join a 12-engineer team running 9 services on Kubernetes. They have Prometheus with node and pod CPU and memory dashboards, container logs you read with kubectl logs, and no tracing. Incidents take hours and the usual move is to restart pods. You have one quarter of one engineer's time to improve things. What do you do first?

READING
  1. BOOK
    Observability Engineering Charity Majors, Liz Fong-Jones, George Miranda, 2022

    The book-length version of this chapter's definition, with the case for high-cardinality per-request events. Honeycomb gives the O'Reilly text away; the later chapters on sampling and culture can wait for modules four and five. Read: chapters 1 and 2 (what observability is and how it differs from monitoring), skim chapter 3 (lessons from scaling without it).

  2. BOOK
    Distributed Systems Observability Cindy Sridharan, 2018

    A short, free O'Reilly report that gives the clearest even-handed account of logs, metrics and traces and where each fits. More sceptical than Majors about the single-store vision; read both. Read: chapters 1 to 4; chapter 4 on the three pillars is the preparation for the next chapter.

  3. POST
    Monitoring and Observability Cindy Sridharan, 2017

    The essay that drew the monitoring-versus-observability line most of the industry now uses: monitoring for known failure modes, observability for the rest. Short, and still the best thing to send a colleague who thinks they are the same.

  4. POST
    Observability: A Manifesto Charity Majors, 2021

    The one-page statement of the working definition used in this chapter: asking new questions from outside without shipping new code. Opinionated; read it for the definition and the argument about cardinality, and skip the product pitch at the end.

  5. TALK
    Three Pillars with Zero Answers: A New Observability Scorecard Ben Sigelman, 2018

    The slides from the QCon SF talk that started the critique of the three pillars. The scorecard (specificity, fidelity, freshness for detecting variance; then explaining it) is a better way to evaluate a tool than its feature list. Slides only, so read them slowly.

  6. POST
    How many pillars of observability can you fit on the head of a pin? Charity Majors, 2025

    The current state of the pillars argument: signals are a technical term, pillars are a sales term, and three siloed stores are the expensive way. Read it for the cost argument, which module four quantifies.

  7. DOC
    Monitoring Distributed Systems Rob Ewaschuk, Google SRE book, 2016

    The classic statement of what monitoring is for: the four golden signals, symptoms versus causes, black-box versus white-box. Everything in the alerting module builds on this chapter; read it now so the contrast with observability is concrete.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: The three signals and what each one cannot do →