Bookmarks

Observability

A property of a system that lets you judge its internal state from the data it exposes externally — metrics, logs and traces.

Also: system observability, observability engineering

checked 18 Nov

All terms

Observability is a property of a system: what it exposes on the outside tells you what is going on inside. The main question it answers is “what is happening right now, and why”. Tooling collects telemetry — metrics, logs and traces — and an engineer uses that data to find the cause of a failure or a slowdown, including when the system fails in a way nobody anticipated.

Where the term comes from

The word comes from control theory: in 1960 Rudolf Kálmán introduced observability as a measure of how completely a system’s internal state can be reconstructed from its outputs. In software engineering the term took hold as distributed systems and microservices spread, where the path of a single request is spread across dozens of services and has to be pieced together.

Three signals

SignalWhat it isWhat question it answers
Metricsnumeric measurements over a period: response time, error rate, loadHow is the system behaving overall, and where does it struggle?
Logsevent records with details: what happened, when and with which parametersWhat exactly happened at that moment?
Tracesthe path of a single request across services, broken into segments — spansWhere does the request lose time, and at which hop?

The path of a single request across services — a distributed trace — is assembled from segments, spans, which form a tree: the gateway called the order service, which in turn called the database and the payment service. Example: a trace shows 305 ms in total — 15 ms in the gateway, 290 ms in the order service, of which 270 ms went to the database. One glance at the breakdown, and you know where to look.

How it differs from monitoring

Monitoring collects predefined metrics and compares them against thresholds: an alert fires, the team reacts. It answers the question “is the system working” and is good at catching known problems — a server has gone down, disk space has run out. Observability is about exploration: from the same telemetry you can ask new questions that were never on the checklist, and dig into unfamiliar failures.

In practice they work together: monitoring catches the alert “error rate has gone up”, and observability helps pinpoint which service and which version caused it.

Sources

the term is written from these pages

Verified 18 Nov

Not to be confused with

what it is mixed up with and how it differs

  • APMapplication performance monitoring

    APM is an off-the-shelf class of tooling with a fixed set of metrics tied to application code; observability is a property of a system and an approach, not a specific product.

  • OTelOpenTelemetry

    OpenTelemetry is a standard and a toolset for collecting telemetry, while observability is the goal that this collection serves.

In depth in the references

where the topic is covered in detail