From Known-Knowns to Unknown-Unknowns: Architecting for Observability, Not Just Monitoring

November 25, 202611 min readDevOps & infrastructureBy Vishal Rabari
From Known-Knowns to Unknown-Unknowns: Architecting for Observability, Not Just Monitoring

The technical blogosphere is awash with articles dissecting "Observability vs. Monitoring." If you've landed here, you've likely seen ten of them, each offering a slightly different nuance. Most agree that observability goes "beyond" monitoring, but few dive into the practical engineering implications of that distinction. My stance is unambiguous: Monitoring is a prerequisite for system stability, but true observability is the competitive edge for understanding the unknown. You cannot achieve the latter without mastering the former, and treating them as interchangeable terms leads to under-engineered systems and frustrated incident response teams.

Let's be clear: monitoring answers questions about known-knowns. It tells you, "Is the service up? Is CPU usage spiking? Is the database connection pool exhausted?" These are questions you've anticipated, defined thresholds for, and built alerts around. Your dashboards reflect these predefined metrics, giving you a snapshot of expected behavior. It's about predictable failure modes and confirming that your system is operating within established parameters. A mature monitoring setup is like the warning lights on your car dashboard: it tells you when the oil is low or the engine is overheating, but it won't tell you why a specific cylinder misfired or the exact component that failed.

Observability, on the other hand, is about grappling with unknown-unknowns. It’s about asking arbitrary, novel questions about your system’s internal state without deploying new code. When your monitoring system screams "latency spike!" but offers no immediate explanation, observability is the capability that empowers your engineers to drill down, correlate disparate data points, and diagnose the root cause of an unprecedented failure mode. It's not just about knowing that something is wrong, but understanding why for situations you never explicitly pre-configured an alert for.

This isn't a semantic debate for architects in ivory towers. The difference manifests directly in how you instrument your code, collect your data, and, crucially, how quickly your team can resolve incidents. Neglecting this distinction means you're building systems that are robust against expected issues but brittle against the unexpected. In today's complex, distributed environments, the unexpected is the norm. We'll explore how to move beyond basic health checks and build an engineering strategy that embraces both the foundational certainty of monitoring and the exploratory power of observability.

1

The Monitoring Foundation: Known-Knowns and Predictive Alerts

The Monitoring Foundation: Known-Knowns and Predictive Alerts

The Monitoring Foundation: Known-Knowns and Predictive Alerts

Monitoring is the bedrock of any reliable system. It’s about establishing a baseline of normal operation and being alerted when deviations occur. Think of it as a set of predefined checks and balances. When we talk about monitoring, we're typically focused on collecting a specific set of metrics and logs that answer questions like:

  • "Is the API gateway responding to requests?" (Liveness/Readiness probes)
  • "Is the database server’s CPU utilization exceeding 80%?" (Resource saturation)
  • "Are there more than 500 errors per minute from the authentication service?" (Error rates)
  • "Is the average request latency for the order processing service above 200ms?" (Performance thresholds)

These are all 'known-knowns': conditions you can anticipate, measure, and set actionable alerts for. Your monitoring stack, often comprising tools like Prometheus, Nagios, or cloud-native equivalents, is configured with dashboards displaying these key performance indicators (KPIs). You've likely defined Service Level Objectives (SLOs) and Service Level Indicators (SLIs) around these metrics, creating a clear picture of your system's health against its contractual obligations.

Practically, this means instrumenting your code with standard metrics (e.g., using a client library like Prometheus client for Go or Java Micrometer), sending logs to a centralized system (like ELK stack or Splunk), and configuring health endpoints. Synthetic transactions, where automated scripts simulate user journeys, also fall squarely into the monitoring domain, proactively verifying critical paths. The data collected for monitoring is often aggregated, low-cardinality (fewer distinct labels), and optimized for time-series analysis. This ensures efficient storage and quick querying for pre-defined dashboards and alerts. The engineering effort here is focused on identifying critical operational parameters and ensuring their consistent measurement and alerting.

Without this foundational layer, you're flying blind. You won't know when something is wrong, let alone what is wrong. Monitoring is reactive by nature, but it's a necessary reaction. It tells you where to start looking when the pager goes off, guiding you to the general area of concern within your architecture.

2

Observability's Edge: Uncovering the Unknown-Unknowns

Observability's Edge: Uncovering the Unknown-Unknowns

Observability's Edge: Uncovering the Unknown-Unknowns

Now, imagine your monitoring system blares: "Authentication service latency is at 99th percentile!" Your dashboards show a clear spike. But why? Is it a sudden increase in traffic? A slow database query? A deadlock in a specific code path? A third-party dependency failing? Your traditional monitoring, focused on aggregated metrics, can tell you that the system is slow, but it often can't tell you why a particular request, or even a specific cohort of requests, is affected.

This is where observability steps in, moving beyond the aggregated view to the granular, contextual details needed to diagnose novel and complex issues. Observability is about equipping engineers with the tools to ask arbitrary questions about the system's behavior without having to deploy new code or add specific logging statements. It's about empowering exploratory analysis when faced with an unknown-unknown failure mode.

The three pillars – logs, metrics, and traces – are still central, but their application shifts dramatically for observability:

  • Metrics for Observability: Instead of just http_requests_total, you're collecting http_requests_total{path="/api/v1/user/{id}", method="GET", status="200", tenant_id="acme", region="us-east-1"}. These are high-cardinality metrics, rich with contextual labels that allow you to slice and dice data to find patterns in specific dimensions. This lets you ask, "Is latency high only for users from the 'acme' tenant accessing the /user/{id} endpoint in us-east-1?"
  • Logs for Observability: Logs transform from simple text streams to structured, searchable events. Every log line includes correlation IDs (like trace_id, span_id, request_id, user_id) that link it to specific requests and operations across distributed services. This allows you to reconstruct the exact sequence of events for a problematic transaction, rather than just seeing isolated error messages.
  • Distributed Tracing: This is arguably the most powerful tool for observability. Tracing visualizes the end-to-end journey of a request as it traverses multiple services, queues, and databases. It shows you the latency contribution of each component, identifies bottlenecks, and helps pinpoint exactly where an error occurred in a complex microservices architecture. Tools like OpenTelemetry, Jaeger, or Zipkin are fundamental here.

The engineering effort for observability focuses on pervasive, consistent instrumentation that adds rich context to every piece of data. It's about making your system's internal state transparent and queryable, even for conditions you never thought to monitor explicitly.

3

Architectural Implications: Building for Both

Architectural Implications: Building for Both

Architectural Implications: Building for Both

The practical differences between monitoring and observability aren't just conceptual; they demand distinct architectural considerations and instrumentation strategies. Simply adding a few more metrics won't grant you observability. It requires a deliberate, upfront design choice that impacts your service boundaries, data pipelines, and even your team's development practices.

Instrumentation Strategy: Context is King

For monitoring, instrumentation might involve basic health checks and a handful of aggregated metrics. For observability, every significant operation within your application needs to emit rich, contextual data. This means:

  • Pervasive Context Propagation: Every request entering your system must generate a unique trace_id and span_id, which then propagates through all downstream services, message queues, and database calls. This is crucial for linking logs, metrics, and traces together for a single request. OpenTelemetry has become the de facto standard for achieving this vendor-agnostically.
  • Structured, Context-Rich Logging: Move beyond printf debugging. Adopt structured logging (e.g., JSON logs) where every log line includes not just the message, but also key-value pairs for trace_id, span_id, user_id, tenant_id, service_name, version, and any other relevant business context. This transforms logs from simple event streams into queryable datasets.
  • High-Cardinality Metrics: While monitoring thrives on low-cardinality, aggregated metrics (e.g., total requests), observability demands the ability to segment these metrics by numerous dimensions (e.g., requests_by_customer_tier, latency_by_api_endpoint_and_region). Be mindful of the storage and processing costs associated with high cardinality, though, as it can quickly become expensive.

Data Pipelines and Storage: Optimized for Purpose

The data collected for monitoring and observability often flows through different pipelines and is stored in different ways:

  • Monitoring Data: Typically time-series databases (like Prometheus, InfluxDB) optimized for fast ingestion and querying of aggregated numeric data over time. Alerts are often processed directly from these stores.
  • Observability Data: Requires more flexible, powerful storage and querying capabilities. Distributed tracing data often goes to specialized trace stores (Jaeger, Tempo). Structured logs benefit from log management systems (ELK, Splunk, Loki) that allow complex full-text search and correlation. High-cardinality metrics may reside in specialized analytics databases or require more sophisticated indexing in your time-series database. The key is the ability to correlate data across these different data types and stores.

Team Culture and Responsibility

Monitoring is often seen as an operations or SRE responsibility. Observability, however, shifts significant responsibility left to developers. Developers are best positioned to instrument their code with the necessary context and understand which data points are crucial for debugging. This requires training, clear guidelines, and a cultural shift towards "instrumentation-first" development. It's no longer just about writing code that works, but writing code that is debuggable in production by anyone on the team.

By consciously architecting for both, you create systems that not only signal problems but also provide the deep, contextual insights needed to solve them, transforming incident response from a frantic search into a guided investigation.

Frequently asked questions

Is observability just advanced monitoring?
No, they serve distinct purposes. Monitoring focuses on known-knowns, confirming expected behavior against predefined thresholds. Observability enables you to explore unknown-unknowns, diagnosing novel issues by asking arbitrary questions about your system's internal state without redeploying code. While observability uses monitoring's pillars (logs, metrics, traces), it demands a far richer, contextual, and correlatable dataset.
How do I convince my team to invest in observability?
Highlight the business impact of faster incident resolution and reduced mean time to recovery (MTTR). Frame it as an investment in developer productivity and system resilience. Use real-world examples of 'mystery outages' that took hours or days to solve, contrasting that with how observability could have provided immediate answers. Emphasize that it reduces on-call burnout and empowers developers to debug their own code in production.
What are the key metrics for measuring observability maturity?
Beyond standard MTTR and MTBF, consider: 1. Percentage of critical services with end-to-end tracing enabled. 2. Average number of unique dimensions/labels per metric. 3. Percentage of logs that are structured and include correlation IDs. 4. Time taken for a developer to self-diagnose an issue without involving other teams. 5. Coverage of business-critical transactions by distributed traces.
Can I achieve observability with only logs and metrics, without distributed tracing?
You can gain some observability, but distributed tracing is crucial for understanding the causal chain of events in complex, distributed systems. Without it, correlating logs and metrics across service boundaries for a specific request becomes a manual, error-prone, and time-consuming task. Tracing provides the essential 'why' behind cross-service interactions and latency.
What's the role of AIOps in observability?
AIOps can significantly enhance observability by automating anomaly detection, correlating alerts from disparate sources, and predicting potential issues before they impact users. It acts as an intelligent layer on top of your observability data, helping to surface patterns in the vast amounts of telemetry that human operators might miss, thereby accelerating incident response and proactive maintenance.
How does the cost of observability compare to traditional monitoring?
Observability typically incurs higher costs due to the volume and cardinality of data collected. High-cardinality metrics, pervasive structured logging, and distributed tracing generate significantly more data than basic monitoring. This impacts storage, processing, and ingestion costs, often requiring more sophisticated and scalable backend systems. However, this cost is offset by reduced downtime and increased developer efficiency.
What's the difference in alert strategies for monitoring vs. observability?
Monitoring alerts are typically threshold-based and react to known deviations (e.g., 'CPU > 80%'). Observability-driven alerts are often more sophisticated, leveraging statistical anomaly detection or composite alerts across multiple data sources. The true power of observability isn't just in better alerts, but in providing the context needed to diagnose the issue once an alert (from either monitoring or observability) fires, allowing for more intelligent, less noisy alerting.
What are some common pitfalls when implementing observability?
Common pitfalls include: 1. 'Boil the ocean' approach: Trying to instrument everything at once, leading to overwhelming data volumes and costs. Start with critical services. 2. Lack of context propagation: Failing to pass trace IDs and other correlation identifiers across service boundaries, breaking end-to-end visibility. 3. Unstructured or sparse logging: Logs without context are difficult to query and correlate. 4. Ignoring team training: Expecting developers to adopt observability without proper education on instrumentation best practices and tooling. 5. Tooling sprawl without integration: Using disparate tools that don't easily correlate data, undermining the core value of observability.

Photo by U.Lucas Dubé-Cantin on Pexels

Share