Pcornel
Observability

Observability Fundamentals

Cheat sheet · https://pcornel.dk/topic.php?topic=6098

Back to the Topic

Answer

Observability is the ability to understand a system's internal state from its outputs: metrics, logs, traces and events, correlated by time and shared labels such as service, host and trace ID.

Remember

Start from user-facing symptoms (errors, latency), then drill into metrics → traces → logs. Telemetry is only useful if it has consistent labels, synchronised clocks and is retained long enough.

First checks

  • up — first check for this topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool check config prometheus.yml — config valid

Verify in this order

system emits telemetry → collected → stored → queried/alerted → human decision

Where it usually breaks

Common failures are high-cardinality labels, inconsistent time zones/clocks, sampling that removes rare failures, retention shorter than investigation windows, dashboards that aggregate away the failing cohort and assuming presence of telemetry means the measured service is correct.

Observability Fundamentals verification boundary matrix

BoundaryInspectHealthy interpretationDo not infer
IntentMonitoring vs observabilityIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeTelemetry signals / White-box vs black-box observationOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateDimensions/labels/tagsIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeCardinalityThe original bounded check succeeds in the same time windowProduction correctness outside this scope

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6098

Confirmation

Confirm action

Continue?