Cloud Observability Explained: Metrics, Logs, Traces and SLOs

Cloud Observability Explained: Metrics, Logs, Traces and SLOs

Cloud observability explained in plain terms: it is the ability to understand what a cloud system is doing, and why, from the data the system itself produces. When a service slows down or starts failing, observability is what lets an engineer find the cause in minutes instead of guessing for hours. The short answer is that observability rests on three kinds of data, metrics, logs and traces, collected with open standards such as OpenTelemetry, and tied to service level objectives that define what good actually means.

Observability is often confused with monitoring, but the two are different. Monitoring watches for known problems: a dashboard shows CPU usage, an alert fires when error rates cross a threshold. Observability answers unknown questions: why is this one customer’s checkout slow, which service in the chain is responsible, and what changed just before it broke.

That difference matters more as systems grow. A single server can be understood by looking at it, but a cloud application made of dozens of services, queues and databases cannot.

Nobody can hold its behaviour in their head, so the system must be able to explain itself. If you run those services on containers, our guide to Kubernetes explained sets out the platform this article’s examples assume.

Key takeaways

  • Cloud observability is the ability to understand a system’s internal state from the telemetry it emits: metrics, logs and traces.
  • Metrics show that something is wrong, traces show where in the request path, and logs show why it happened.
  • OpenTelemetry is the open standard for producing telemetry, Prometheus collects metrics, and Grafana visualises them.
  • Service level objectives turn vague reliability goals into measurable targets with an error budget that guides decisions.
  • Start with the golden signals, latency, traffic, errors and saturation, and add depth only where incidents prove you need it.

The three pillars of observability

Observability is usually described through three signal types, each answering a different question. Metrics are numeric measurements over time: request counts, error rates, latency percentiles, queue depth, CPU usage. They are cheap to store, easy to alert on, and ideal for dashboards and trends, but they cannot explain why one specific request failed.

Logs are timestamped records of discrete events, such as a failed payment or a database timeout, with the context around them. They are rich in detail for a single event but expensive to store and search at scale, which is why structured logging in JSON, with consistent field names, matters so much.

Traces follow a single request through every service it touches, as a tree of spans with start times and durations. They show exactly where time was spent and where the chain broke, which is essential once more than one service is involved. Trace context travels between services in a standard header called traceparent, so every service attaches its spans to the same trace.

The three pillars work together. A metric shows that checkout latency rose at 14:00, a trace shows the payment service waiting on an external bank API, and a log filtered by the same trace ID shows repeated timeouts against that bank. Each pillar alone is a clue; together they are an answer.

Best for: teams moving from a single service to several, where a dashboard alone no longer explains why users are seeing errors.

Instrumentation with OpenTelemetry

OpenTelemetry, usually shortened to OTel, is the open standard for generating metrics, logs and traces from applications, and it is a graduated project of the Cloud Native Computing Foundation. Its software development kits cover the major languages, and its collector receives, processes and exports telemetry to whatever backend you choose, which avoids locking your instrumentation to one vendor.

Automatic instrumentation covers the common cases with little code: HTTP frameworks, database clients and messaging libraries can be instrumented by adding the SDK and a few lines of configuration. Manual instrumentation fills the gaps, adding spans around important business operations such as a checkout or a search, and attaching useful attributes such as the customer tier or the product category.

The key discipline is consistency. Use the same attribute names everywhere, include a trace ID in every log line, and sample traces sensibly: keeping every trace is expensive, while keeping only errors loses the context around slow but successful requests.

A common approach is to keep all error traces and a representative sample of the rest. Our guide to AI observability best practices shows the same principles applied to model-serving systems.

The standard open source stack

A practical observability stack combines a small number of well-known tools. Prometheus is the de facto metrics system for cloud native environments: it scrapes numeric time series from services, stores them with labels such as method and status code, and supports counters, gauges, histograms and summaries. It collects data but does not draw dashboards.

Grafana is the visualisation layer. It queries Prometheus and other data sources and renders dashboards, and it is also where most teams configure alerts. Grafana Labs also maintains Loki for log aggregation and Tempo for distributed tracing, so the three pillars can live in one visualisation tool.

For logs, Fluent Bit or Fluentd forward them from containers to a store such as Loki or Elasticsearch. For traces, the OpenTelemetry Collector exports to Jaeger or Tempo. Managed platforms such as Datadog, New Relic, AWS CloudWatch and Azure Monitor bundle the same capabilities with less setup, at the cost of vendor lock-in and pricing that scales with data volume.

A monitoring dashboard on a wide screen showing line charts, latency graphs and alert panels in a dark operations room
Metrics, logs and traces answer different questions. A dashboard shows that something is wrong; a trace shows where, and a log shows why.

Comparing the three pillars

Signal Question it answers Strengths Weaknesses Typical tools
Metrics Is something wrong, and how much? Cheap, alertable, great for trends Cannot explain single requests Prometheus, Grafana
Logs What exactly happened? Rich detail for one event Expensive to store and search Fluent Bit, Loki, Elasticsearch
Traces Where in the request path? Shows latency across services Needs instrumentation everywhere OpenTelemetry, Jaeger, Tempo
Events What changed, and when? Links incidents to deploys Only useful if recorded Deploy records, audit logs

Golden signals and the RED and USE methods

Knowing what to measure is as important as knowing how. The golden signals, popularised by Google’s site reliability engineering work, are latency, traffic, errors and saturation.

Latency is how long requests take, traffic is how many arrive, errors are how many fail, and saturation is how full the system is. Together they describe user experience and capacity in four numbers.

Two methods organise those signals. The RED method measures request rate, error rate and duration for each service, and it suits user-facing services where every interaction is a request.

The USE method measures utilisation, saturation and errors for each resource, and it suits infrastructure such as disks, networks and queues. Most teams need both: RED for services, USE for the resources underneath them.

Measure latency in percentiles, not averages. An average can hide a miserable experience for a minority of users, while the 95th and 99th percentiles show what the slowest users actually feel. A service with a 50 millisecond average and a 5 second 99th percentile is not a fast service.

SLOs, SLIs and error budgets

Service level indicators, or SLIs, are the measurements that define reliability for a service, such as the proportion of successful requests or the share of requests faster than a threshold. A service level objective, or SLO, is the target for an SLI over a window, for example 99.9 percent of requests succeeding over thirty days.

The gap between the SLO and perfection is the error budget: the amount of failure the team accepts. A 99.9 percent SLO allows about 43 minutes of downtime a month, and that budget is a decision-making tool. While budget remains, the team can ship features quickly; when it is exhausted, the team stops shipping and focuses on reliability.

Alert on the budget, not on every blip. An alert that fires when the error budget is being consumed faster than the window allows is far more useful than one that fires on any single error spike, because it tells the team something is genuinely wrong rather than merely noisy. For the cost side of the same trade-off, see our guide to cloud cost optimization metrics.

Best for: teams that argue about whether to ship or stabilise, where an error budget turns the argument into arithmetic.

Alerting and incident response

Good alerting follows a simple rule: an alert should mean a human needs to act now. Alerts on symptoms users feel, such as rising error rates or latency, deserve a page.

Alerts on causes, such as a disk at 80 percent, deserve a ticket. And alerts that nobody acts on should be deleted, because every ignored alert trains the team to ignore the next real one.

When an incident happens, observability is what makes the response fast. The on-call engineer checks the golden signals, finds the service whose error rate rose, follows a trace to the slow call, and reads the logs for that trace ID. A runbook that names the dashboards and queries for each service turns that process from improvisation into routine.

After the incident, the same data drives the review. What did the first alert say, how long did each step take, and which signal was missing? Every incident that reveals a gap in observability is a reason to add a metric, a log line or a span, so the next incident of the same kind is faster to resolve.

Getting started: a practical checklist

  • Instrument applications with OpenTelemetry, starting with automatic instrumentation for HTTP and database calls.
  • Collect the golden signals for every service: latency, traffic, errors and saturation, in percentiles where it matters.
  • Set up Prometheus for metrics, Grafana for dashboards, and a central log store with structured JSON logs.
  • Include a trace ID in every log line so logs, metrics and traces can be joined for one request.
  • Define one SLO per critical service, with an error budget, and alert on budget burn rather than raw spikes.
  • Keep dashboards few and focused: one per service for health, one per team for overview, and none that nobody reads.
  • Control costs by sampling traces, setting retention limits, and dropping high-cardinality labels that add little value.

Frequently asked questions

What is cloud observability?

Cloud observability is the ability to understand a cloud system’s internal state from the telemetry it emits: metrics, logs and traces. It lets engineers answer why a system behaves the way it does, rather than only knowing that something is wrong.

What is the difference between monitoring and observability?

Monitoring watches for known problems using predefined dashboards and alerts. Observability is the broader ability to investigate unknown problems by exploring telemetry data, which matters most in distributed systems where failures are rarely the ones you predicted.

What are the three pillars of observability?

The three pillars are metrics, logs and traces. Metrics are numeric measurements over time, logs are timestamped event records, and traces follow a single request across services. Together they show that something broke, where it broke, and why.

What is OpenTelemetry?

OpenTelemetry is an open standard for producing metrics, logs and traces from applications, with SDKs for major languages and a collector that exports telemetry to many backends. It avoids locking instrumentation to one vendor’s agent or format.

What is an SLO?

A service level objective is a target for a reliability measurement over a time window, such as 99.9 percent of requests succeeding over thirty days. The gap between the target and perfection is the error budget, which guides whether a team ships features or focuses on reliability.

Latest articles

Scroll to Top