Observability

Observability is how well you can understand what is happening inside a software system, including problems you did not predict, by examining the telemetry it produces, such as metrics, logs, traces and profiles.

Also known as: o11y, monitoring and observability

Related terms in this glossary

How it works

The term comes from control theory. In software, it describes the ability to ask new questions about a running system without shipping new code. Monitoring tells you whether known things are wrong; observability helps you find out why, including for failures nobody planned for.

Systems become observable through telemetry:

  • Metrics: numbers over time, such as request rate, error rate and latency. Compact to store and good for alerts.
  • Logs: timestamped records of events, most useful when structured.
  • Traces: the path of one request across services, broken into spans, which show where time is spent.
  • Profiles: where code spends CPU and memory, increasingly collected continuously.

OpenTelemetry has become the standard way to instrument code and collect this data. Common open-source back ends include Prometheus for metrics, Grafana Loki for logs, Jaeger or Grafana Tempo for traces, and Grafana for dashboards, alongside commercial platforms. The key is correlation: moving from an alert to the traces and logs of the affected requests.

Why it matters

Microservices, Kubernetes and managed cloud services create many more places for things to go wrong. Without observability, incidents turn into long guessing sessions. Good observability shortens diagnosis, supports SLOs and error budgets, and shows the real user impact of changes. The main risk is cost: telemetry volume can grow faster than the systems it describes, so sampling and retention need planning. See Gepton's Observability and SRE service.

Observability in depth

Building observability into a service

Observability is easiest when it is designed in, not bolted on during an incident. A practical sequence for a new or existing service:

  1. Instrument with OpenTelemetry. Start with automatic instrumentation for HTTP, database and queue libraries, then add manual spans around important business steps.
  2. Use structured logs in JSON with the trace ID and span ID in every line, so logs can be joined to traces.
  3. Emit the core metrics for each service: request rate, errors and duration, often called RED, plus saturation for resources.
  4. Add business attributes such as tenant, plan or region to spans, while keeping personal data out.
  5. Define SLOs for user-facing journeys and alert on burn rate rather than raw thresholds.
  6. Write runbooks linked from each alert, describing the first checks.

Example: a slow checkout

Example: an alert fires because the checkout latency SLO is burning faster than usual. The on-call engineer opens the alert's dashboard, sees high latency only for one payment method, and jumps to example traces from the slow requests. The traces show most time spent in a call to an external payment API, with retries. The correlated logs for those spans show timeout errors after a configuration change that lowered the connection pool size. The team rolls back the change through GitOps, confirms the SLO recovers, and records the finding in a blameless postmortem. Without traces, the same investigation would start with guesswork across several services.

Controlling telemetry volume and cost

Telemetry grows quickly, so plan for it from the start:

  • Sampling: head sampling keeps a fixed share of traces; tail sampling in the OpenTelemetry Collector keeps all errors and slow traces and a sample of the rest.
  • Cardinality: avoid metric labels with unbounded values, such as user IDs or full URLs, which multiply stored series.
  • Retention tiers: keep detailed data briefly and aggregates longer.
  • Log levels: debug logs off in production by default, with a way to turn them on for one service.

Measuring observability itself

Useful signals that observability is working include mean time to detect and mean time to resolve incidents, the share of incidents first detected by alerts rather than customers, the share of alerts that led to action, and how often postmortems list missing telemetry as a factor. These measures improve slowly and should be tracked over months.

Typical mistakes are three disconnected tools for metrics, logs and traces with no shared IDs, dashboards nobody looks at, alerts on CPU instead of user impact, and personal data written into logs. eBPF-based tools can add visibility without code changes. Observability supports SRE practice and error budgets, and the same ideas extend to AI systems through LLMOps tracing. Gepton sets this up in observability and SRE.

Questions about Observability

Something else? Send us your question and an engineer replies with next steps.

What is the difference between monitoring and observability?

Monitoring watches for known failure conditions: a dashboard of CPU, error rate and disk space, with alerts when thresholds are crossed. Observability is the broader ability to investigate failures nobody predicted, by slicing rich telemetry by any attribute and following individual requests across services. Good monitoring is part of observability. In practice, teams need both: alerts that tell them something is wrong, and telemetry detailed enough to find out why.

Where should a team with no observability start?

Start with the user-facing paths that matter most, such as login, checkout or document upload. Add OpenTelemetry automatic instrumentation to the services on those paths, ship structured logs with trace IDs, and build one dashboard showing request rate, errors and latency. Define one or two SLOs and alert on them. That small foundation covers most incidents; expand coverage service by service after that, guided by what the first incidents reveal.

Articles that mention Observability

All articles

Jump to

↑↓ to move↵ to open