Skip to content

Observability

Observability is the property of a system whose internal state can be inferred from its external outputs — logs, metrics and traces — without deploying new code.

Definition

What it is

Observability is not monitoring. Monitoring answers "is the system up?". Observability answers "why is this specific request slow, on this user, in this region, at this time?". Monitoring is a set of checks; observability is a property of the system that makes those checks answerable.

It rests on three signals: logs (discrete events), metrics (aggregated numbers), and traces (request flows across services).

Why it matters

A system with observability lets you ask any question you did not anticipate. A system without it lets you answer only the questions you anticipated when you wrote the dashboards.

The three pillars

Signal

Answers

Cost

Example

Logs

What happened?

High (volume)

"user 42 failed auth at 14:23"

Metrics

How much? How often?

Low (aggregated)

"p99 latency: 340ms"

Traces

Where did it go?

Medium (sampled)

"request hit auth→DB→cache→timeout"

The flow of a traced request

sequenceDiagram
  participant U as User
  participant GW as Gateway
  participant Auth as Auth
  participant DB as Database
  participant Cache as Cache
  U->>GW: GET /api/user
  GW->>Auth: validate token
  Auth-->>GW: ok
  GW->>Cache: get user:42
  Cache-->>GW: miss
  GW->>DB: SELECT user 42
  DB-->>GW: row
  GW-->>U: 200

How to build observability

Observability that works

  1. Instrument at the boundary

    HTTP handlers, DB queries, external calls. Not every internal function.

  2. Use OpenTelemetry

    Vendor-neutral. Traces, metrics, logs in one SDK. Exports to any backend.

  3. Correlate by trace ID

    Logs without trace ID are noise. Every log line carries the span context.

  4. Sample intelligently

    100% of errors, 1-10% of successes. Tail sampling if the backend supports it.

Common failures

Origin

Observability is the property of a system that allows its internal states to be inferred from knowledge of its external outputs.

— Rudolf Kálmán, *On the General Theory of Control Systems*, 1960
1960 · Kálmán define observabilidad en control theory
2010 · adopción en software (logs + metrics + traces)
2019 · OpenTelemetry nace (CNCF)
2024 · OpenTelemetry se vuelve estándar de facto

Evidence

FAQ

Observability vs monitoring?

Monitoring answers "is it up?". Observability answers "why is this request slow?". Monitoring is a subset.

Is observability expensive?

Yes, at scale. Sample traces, aggregate metrics, drop debug logs in production.

What is OpenTelemetry?

A CNCF project that standardizes traces, metrics and logs across vendors. You instrument once, export anywhere.

Do I need all three pillars?

Start with logs and metrics; add traces when you have distributed services.

Connections

  • monitoring
  • logging
  • tracing
  • metrics
  • alerting
  • opentelemetry
Observabilitoperationsreliabilitmonitoringloggingtracingmetricsalertingopenteleme

● broader ● narrower ● related

Broader

  • operations
  • reliability

Related

  • monitoring
  • logging
  • tracing
  • metrics
  • alerting
  • opentelemetry

Used in the garden

Sources

Etymology

Origin: borrowed

  • observ (verb): from Latin observare, "to watch, to heed"
  • -ability (suffix): capability of

Semantic network

Observabilitoperationsreliabilitmonitoringloggingtracingmetricsalertingopenteleme

● broader ● narrower ● related

Broader

  • operations
  • reliability

Related

  • monitoring
  • logging
  • tracing
  • metrics
  • alerting
  • opentelemetry

Used in the garden

Sources