Volume 6 · Chapter 1 — Observability and Operations

Observability Fundamentals

Goutham Mayaluri 9 min read AWSCloudObservability

1.1 Introduction

You cannot operate what you cannot see. Observability is the practice of instrumenting systems so you can understand what’s happening inside them from the outside - essential for detecting problems, diagnosing incidents, and knowing whether the system is healthy. For a bank running critical services, observability is the difference between noticing a payment failure in seconds and hearing about it from customers an hour later. This chapter establishes the fundamentals - the three pillars of metrics, logs, and traces - that the rest of the volume builds on with specific AWS services.

1.2 Why Observability Matters

Modern systems - distributed, containerized, auto-scaling - are too complex to understand by intuition. When something goes wrong, you need data to answer: Is the system healthy? What changed? Where is the problem? Why is it slow or failing? Observability provides that data, enabling you to detect issues (ideally before customers do), diagnose root causes quickly, and measure whether the system meets its performance and reliability goals. Without it, operating a production system is guesswork, incidents drag on, and problems go unnoticed until they’re severe. With it, teams catch degradations early, resolve incidents fast, and continuously understand system behaviour - which is why observability is a pillar of operational excellence rather than an afterthought.

1.3 The Three Pillars

Observability rests on three complementary types of telemetry. Metrics are numeric measurements over time - CPU usage, request rate, error rate, latency - efficient to store and ideal for dashboards, trends, and alerting on thresholds. Logs are timestamped records of discrete events - what happened, with detail and context - invaluable for investigating exactly what occurred during an incident. Traces follow a single request as it flows across multiple services, showing where time was spent and where it failed - essential in distributed systems where one request touches many components. Each answers a different question: metrics tell youthatsomething is wrong and trends, logs tell youwhathappened in detail, and traces tell youwhereacross services a request slowed or broke. Together they give a complete picture.

flowchart TB
  subgraph Pillars[Three pillars of observability]
      M[Metrics - numeric over time\n'is something wrong?' + trends/alerts]
      L[Logs - discrete event records\n'what exactly happened?']
      T[Traces - request across services\n'where did it slow/fail?']
  end
  M & L & T --> Understand[Understand system health,\ndiagnose incidents, measure goals]

1.4 Monitoring vs Observability

It’s worth distinguishing monitoring from observability. Monitoring is watching known indicators - predefined metrics and alerts for conditions you anticipated (CPU high, disk full, error rate up). Observability is broader: instrumenting the system richly enough that you can explore and answer questions you didn’t anticipate - investigate a novel problem by slicing metrics, reading logs, and following traces. Monitoring tells you when a known thing breaks; observability lets you understand why an unknown thing is happening. You need both: monitoring for the known failure modes with fast alerts, and observability for the inevitable novel issues that monitoring didn’t predict. Good practice builds monitoring on top of a well-instrumented, observable system.

1.5 Instrumentation and Correlation

The power of observability multiplies when telemetry is correlated. Attaching a correlation ID (or trace ID) to a request as it flows through the system lets you tie together the metrics, logs, and traces for that one request across every service it touched - so when you investigate an incident, you can jump from a spiking error metric, to the logs of the failing request, to the trace showing which downstream call broke. Structured logs (machine-parseable, with consistent fields) and consistent metric and trace naming make this correlation possible. The instrumentation you add - emitting meaningful metrics, structured logs, and traces with correlation IDs - is what turns raw telemetry into the ability to quickly answer “what’s happening and why,” which is the entire goal.

1.6 Banking Production Scenario

A bank instruments every service with all three pillars. Metrics capture request rate, error rate, and latency for each service and key business measures like payment success rate. Structured logs record each significant event with a correlation ID. Distributed traces follow each customer request across the services it touches. When payment errors rise, an alert fires on the error-rate metric within seconds; the on-call engineer opens a dashboard to see the scope, filters logs by the correlation IDs of failing requests to see what happened, and follows a trace to find the exact downstream service that started failing - diagnosing in minutes what would otherwise take hours. This end-to-end visibility, catching and explaining problems fast, is what observability delivers for a critical financial system.

1.7 Troubleshooting: Observability Gaps

The absence of observability shows up as slow, painful incidents. If you can’t tell whether the system is healthy, you’re missing metrics and dashboards. If you can see something’s wrong but not why, you’re missing detailed or structured logs, or the logs aren’t searchable. If a request fails somewhere in a chain of services but you can’t find where, you’re missing distributed tracing and correlation IDs. If alerts are either absent (you learn of outages from customers) or overwhelming (alert fatigue from noisy, non-actionable alerts), your alerting needs tuning to meaningful, actionable conditions. The fix for all of these is to invest in instrumentation up front - meaningful metrics, structured correlated logs, distributed traces, and well-tuned alerts - so that when incidents happen, the data to detect and diagnose them is already there.

Interview Question

What are the three pillars of observability, and why do you need all three?

The three pillars of observability are metrics, logs, and traces, and they’re complementary because each answers a different question about a running system. Metrics are numeric measurements over time - things like CPU usage, request rate, error rate, and latency. They’re efficient to store and aggregate, which makes them ideal for dashboards, spotting trends, and alerting when a value crosses a threshold; metrics tell youthatsomething is wrong and show you patterns over time, but they don’t carry the detail of what specifically happened. Logs are timestamped records of discrete events, capturing what happened with detail and context - an error message, a transaction processed, a request received. They’re invaluable for investigating exactly what occurred during an incident, giving the specifics metrics lack; logs tell youwhathappened. Traces follow a single request as it flows across multiple services, showing the path it took, where time was spent, and where it failed. In a distributed system where one request touches many components, a trace tells youwhereacross those services a request slowed down or broke, which neither metrics nor logs alone reveal easily. You need all three because they cover different questions and complement each other in an investigation. Metrics detect that there’s a problem and show its scope and trend - an error-rate metric spikes and an alert fires. Logs then let you see what actually happened in the failing requests - the specific errors and context. Traces show where in the chain of services the failure originated - which downstream call started failing. Relying on only one leaves gaps: metrics without logs tell you something’s wrong but not what; logs without metrics make it hard to see trends or get timely alerts; and without traces, a failure buried in a chain of services is very hard to locate. Their power multiplies when correlated - attaching a correlation or trace ID to a request lets you jump from a spiking metric to that request’s logs to its trace across services - so you can go from “errors are up” to “this downstream service is failing for this reason” in minutes. So the three pillars together give a complete picture: metrics for detection, trends, and alerting; logs for detailed investigation of what happened; and traces for locating where in a distributed system a problem occurred - and you need all three, correlated, to detect and diagnose incidents quickly, which is the whole purpose of observability.

Interview Question

What's the difference between monitoring and observability?

Monitoring and observability are related but distinct, and the difference is about known versus unknown problems. Monitoring is watching known indicators - predefined metrics and alerts for conditions you anticipated in advance, like CPU being high, disk filling up, or the error rate exceeding a threshold. You decide ahead of time what to watch and what constitutes a problem, and monitoring tells you when one of those known conditions occurs. It’s essential for catching the failure modes you can foresee and getting fast alerts on them. Observability is broader: it’s instrumenting the system richly enough - with metrics, logs, and traces - that you can explore its behaviour and answer questions you didn’t anticipate. Where monitoring tells you when a known thing breaks, observability lets you understand why an unknown or novel thing is happening by investigating - slicing metrics along different dimensions, searching detailed logs, and following traces across services to reconstruct what occurred. The classic framing is that monitoring answers “is this known condition true?” while observability answers “why is the system behaving this way?” for situations you never predicted. Real production incidents are frequently novel - a new failure mode, an unexpected interaction - and no amount of predefined monitoring anticipates all of them, which is why you need observability to diagnose the surprises. But you need both: monitoring provides fast, targeted alerts on the known-important conditions so you’re notified promptly, while observability provides the depth to investigate anything, including what monitoring didn’t foresee. In practice, good observability is the foundation and monitoring is built on top of it - you instrument the system to be observable, then define monitoring and alerts for the specific conditions you care most about. So monitoring is the watching of predefined known indicators with alerts, observability is the broader capability to understand and explore system behaviour including unanticipated problems, and mature operations combine fast alerting on known issues with the rich instrumentation needed to diagnose the unknown ones.

Chapter Revision Notes

  • Observability = understanding a system’s internal state from the outside, to detect, diagnose, and measure - you can’t operate what you can’t see.
  • Three pillars: metrics (numeric over time - detection, trends, alerts), logs (event detail - what happened), traces (request across services - where it broke).
  • You need all three, correlated, to go from “errors are up” to root cause quickly.
  • Monitoring watches known indicators with alerts; observability lets you explore and diagnose unanticipated problems - you need both.
  • Correlation IDs and structured logs tie metrics, logs, and traces together per request - the key to fast diagnosis.