Notes / tag / observability

#observability

269 notes across 11 topics

# Agentic Ai Projects And Mastery

All Agentic Ai Projects And Mastery notes →

What is Cortex (cortexproject)

CNCF Incubating, horizontally-scalable multi-tenant long-term storage for Prometheus — the project Grafana Mimir forked from in 2022, still maintained as the vendor-neutral, community-governed alternative once Grafana Labs redirected engineering effort to Mimir.

tech observability metrics cncf
Aug 2, 2026

1 — What Observability Actually Means

Observability vs. monitoring, the three-pillars critique, and why observability is a property of how a system was instrumented — not a tool you bought or a dashboard you built.

observability foundations book
Jul 17, 2026

2 — The Signals

Metrics, logs, traces, profiles, and events — what each is built to capture, what it costs, and which question it actually answers vs. which one people mistakenly ask it.

observability foundations book
Jul 17, 2026

7 — Multi-Tenancy

Two separate guarantees hiding under one name — data isolation and performance fairness — and the tenant identification, quota enforcement, and selective backpressure that make both hold under shared infrastructure.

observability multi-tenancy finops book
Jul 17, 2026

8 — Self-Observability

The bootstrapping problem — a platform can't fully trust itself to tell you it's failing — and the two mechanisms that get around it: an independent out-of-band health path, and a synthetic canary that catches silent stalls no internal metric surfaces.

observability multi-tenancy finops book
Jul 17, 2026

5 — Label & Attribute Schema Design

Cardinality budget, naming conventions, and the high-churn label traps that turn a cheap metric into a production incident — the design discipline for the labels semantic conventions don't already cover for you.

observability instrumentation opentelemetry book
Jul 17, 2026

7 — Metrics Storage (TSDB)

Chunk/block encoding, the write-ahead log, compaction and the write amplification it trades for query speed, and why a cardinality spike is a storage-engine problem, not just a cost line item.

observability storage query book
Jul 17, 2026

8 — Log Aggregation

Schema-on-write vs. schema-on-read as competing bets about when to pay indexing cost, and the two different deduplication problems a log pipeline actually has to solve.

observability storage query book
Jul 17, 2026

7 — Distributed Tracing Backend

How spans that arrive out of order, from different services, get assembled into one trace — and the two competing storage models (indexed search vs. object storage plus a trace-ID lookup) that trade query flexibility for cost.

observability storage query book
Jul 17, 2026

5 — Continuous Profiling

What makes always-on, sampling-based profiling cheap enough to run in production continuously, why it earns that cost mainly for hot or expensive services, and how a profile correlates back to the one trace that was running during the sample.

observability aiops profiling book
Jul 17, 2026

1 — OpenTelemetry SDKs & Semantic Conventions

OpenTelemetry is a specification and an API/SDK, not a backend — the pieces that make it up, and the semantic-convention vocabulary that lets two unrelated teams' telemetry be queried the same way.

observability instrumentation opentelemetry book
Jul 17, 2026

4 — Auto vs. Manual Instrumentation

Four ways a span gets created — hand-written, framework-level auto-instrumentation, eBPF, and service-mesh sidecar capture — and the trade-off between code changes and business context each one makes.

observability instrumentation opentelemetry book
Jul 17, 2026

9 — OTel Collector Pipeline Design

Receivers, processors, and exporters chained into a pipeline; why a platform runs more than one; and the agent/gateway topology that tail sampling specifically forces on that design.

observability pipeline opentelemetry book
Jul 17, 2026

1 — Dashboard Design

The three-question test for a vanity panel, why the same underlying data needs a different dashboard for different audiences, and the top-down layout that mirrors how an investigation actually drills down.

observability slo alerting incident-response book
Jul 17, 2026

1 — Alerting & Alert Routing

Symptom-based vs. cause-based alerting, the noise-reduction problem (dedup, grouping, correlation), and routing/escalation — the design discipline standing between a real page and a bad one.

observability slo alerting incident-response book
Jul 17, 2026

2 — SLOs & Error Budgets

SLI/SLO/SLA, the error budget as a spendable resource rather than a compliance number, burn rate as the mechanism connecting the two, and why multi-window multi-burn-rate alerting exists at all.

observability slo alerting incident-response book
Jul 17, 2026

5 — Security & Compliance

Why PII ends up in telemetry by accident rather than by design, the pipeline-layer scrubbing that catches what application discipline misses, tenant-scoped access control, and why the query audit log is itself security-relevant telemetry.

observability multi-tenancy finops book
Jul 17, 2026

1 — Building a Platform Team

A platform team's product is other teams' ability to self-serve reliable telemetry — team topology, the paved road that makes everything earlier in this book the default instead of a manual step, and the ticket-queue failure mode to watch for.

observability platform-team narrative book
Jul 17, 2026

2 — Driving Adoption

A paved road nobody travels on didn't help anyone — onboarding time as the leading indicator, self-service as the mechanism that actually moves it, and why migrating an existing service is a harder adoption problem than a greenfield one.

observability platform-team narrative book
Jul 17, 2026

4 — Observability-Driven Development

The TDD analogy taken seriously: SLOs and instrumentation defined at design time as acceptance criteria, not retrofitted after an incident — and why this only sticks as a launch gate, not a guideline.

observability aiops profiling book
Jul 17, 2026

1 — AIOps / Agentic RCA

What's actually new versus a static runbook — an investigation loop, not a fixed trigger-action mapping — why it depends on everything earlier in this book already being solid, and the read-vs-write safety line most real deployments draw.

observability aiops profiling book
Jul 17, 2026

8 — Case Study: Reactive → Resilient → Autonomous

An illustrative three-act arc — built on the ShipSolid platform maturity model, not any single real deployment — showing why the disciplined middle act is what actually earns the reliability, and why the autonomous act doesn't work without it.

observability platform-team narrative book
Jul 17, 2026

3 — Aggregation Composability — Why You Can't Average Percentiles

Some statistics merge correctly across shards, replicas, and time windows — sum, count, max. Percentiles do not. The distinction that decides whether a fleet-wide dashboard is trustworthy or quietly wrong.

concepts distributed-systems observability maang-prep
Jul 16, 2026

3 — Cross-Signal Correlation

Metrics, logs, and traces are only more useful together than apart if something ties a specific instance of each of them back to the same event. The shared identifier that makes that jump possible — and what breaks when a hop in the call chain doesn't carry it.

concepts distributed-systems observability tracing maang-prep
Jul 16, 2026

What is eBPF

Extended Berkeley Packet Filter — sandboxed, verified bytecode run inside the Linux kernel without a module or a restart. The foundation under Cilium, Grafana Beyla, and Pyroscope: zero-instrumentation traces, metrics, and continuous profiling.

tech observability ebpf linux-kernel profiling
Jul 12, 2026

What is Fluent Bit

CNCF-graduated, C-written log/metrics/trace forwarder — Fluentd's lightweight sibling, the de facto node-level log-collection DaemonSet in most Kubernetes clusters, and Grafana Alloy's main incumbent competitor for that slot.

tech observability logs collector cncf
Jul 12, 2026

What is Jaeger

CNCF-graduated distributed tracing system built at Uber in 2015, Dapper-lineage like Zipkin before it — and, since Jaeger v2, rebuilt on top of the OpenTelemetry Collector rather than bespoke ingestion code.

tech observability tracing cncf
Jul 12, 2026

What is Loki

Grafana Labs' log aggregation system — 'like Prometheus, but for logs': index only labels, store compressed chunks in object storage, query with LogQL. Shares its distributor/ingester/compactor architecture with Mimir and Tempo.

tech observability logs grafana-cloud
Jul 12, 2026

What is Mimir

Grafana Labs' horizontally-scalable, multi-tenant long-term storage for Prometheus metrics — the 2022 successor to Cortex, and the actual system serving every PromQL query and remote-write in a Grafana Cloud metrics stack.

tech observability metrics grafana-cloud
Jul 12, 2026

What is Prometheus

CNCF's second graduated project (2018) — the pull-based metrics monitoring system and query language (PromQL) that defined the exposition format nearly every metrics tool now speaks, and the API that Grafana Mimir scales out horizontally.

tech observability metrics cncf
Jul 12, 2026

What is StatsD

Etsy's 2011 UDP-based metrics protocol and daemon — the simplest possible fire-and-forget instrumentation format, superseded as a client API by OTel/Prometheus but still alive everywhere as a compatibility ingestion shim.

tech observability metrics protocol
Jul 12, 2026

What is Tempo

Grafana Labs' distributed tracing backend — the radical simplification vs. Jaeger's classic architecture: no dedicated index, just object storage and a trace-ID lookup, queried with TraceQL and linked from metrics via exemplars.

tech observability tracing grafana-cloud
Jul 12, 2026

What is Cardinality (in observability)

The number of unique time series (or unique log/trace label combinations) a metric produces — the single biggest driver of ingest cost and query latency in Prometheus-family backends (Mimir, Cortex, Thanos), and the reason unbounded labels are a production incident waiting to happen.

tech observability metrics cardinality cost
Jul 9, 2026

What is Telegraf

InfluxData's plugin-driven metrics/events/logs collection agent — 300+ input/output plugins, written in Go, single static binary — the collector layer in the InfluxDB (TICK-stack-descendant) ecosystem, comparable in role to Grafana Alloy.

tech observability metrics collector influxdata
Jul 9, 2026

2 — Tail Latency

Why the p99/p999 request latency matters more than the average in distributed systems — a single slow dependency in a fan-out can dominate the response time even when most calls are fast.

concepts distributed-systems observability maang-prep
Jul 8, 2026

8 — Query Sharding

Splitting a single logical query into N independently-executable sub-queries that run in parallel and merge into one result — how Grafana Mimir and Loki answer high-cardinality queries within tight SLOs without adding more data shards.

concepts distributed-systems observability promql maang-prep
Jul 7, 2026

9 — Fan-Out Metrics and Trace Shape

The Prometheus metrics that instrument a fan-out pattern (width, shard latency, aggregation, partial results, cancelled workers, hedged requests), the OTel trace waterfall shape that reveals the tail shard, and when requests fan out to multiple shards vs route to a single one.

concepts distributed-systems observability maang-prep
Jul 1, 2026

3 — Telemetry Lifecycle

Traces a signal path from generation through collection, transport, storage, query, visualization, alerting, and retention.

observability foundations book

4 — Observability Maturity Model

Maps the crawl/walk/run/autonomous stages of observability maturity to concrete platform and process capabilities.

observability foundations book

1 — Designing An Observability Platform

Frames a platform-level design exercise: ingestion scale, tenancy, storage tiering, and query latency as first-class requirements.

observability architecture book

2 — Data Plane vs Control Plane

Separates the high-throughput telemetry data path from the low-throughput configuration/policy path, and why conflating them causes outages.

observability architecture book

3 — Push-Based vs Pull-Based Ingestion

Core mental model for telemetry and data ingestion patterns — when to push, when to pull, and how to reason about the trade-offs at principal/staff interview bar.

concepts observability ingestion maang-prep

4 — Agent Based vs Agentless Collection

Weighs sidecar/DaemonSet agents against agentless eBPF or vendor-API scraping for coverage, overhead, and maintenance cost.

observability architecture book

5 — Edge Aggregation

Covers pre-aggregating and filtering telemetry at the collection edge to cut cardinality and egress cost before it reaches the backend.

observability architecture book

6 — Centralized vs Federated Observability

Contrasts a single global observability backend against per-region or per-BU federated backends with cross-federation query.

observability architecture book

1 — Time Series Fundamentals

Covers the time-series data model — series identity, sample resolution, and the write/query tradeoffs baked into that model.

observability metrics book

2 — Metric Types

Distinguishes counter, gauge, histogram, and summary semantics and the aggregation rules each type permits or forbids.

observability metrics book

4 — Cardinality Management

Covers estimating and bounding active series count before a label change ships, and the incident patterns an unbounded label causes.

observability metrics book

6 — Recording Rules

Covers pre-computing expensive PromQL expressions into new series to keep dashboard and alert queries fast at scale.

observability metrics book

1 — Structured Logging

Covers moving from freeform text logs to structured key-value records that a query engine can filter and aggregate on.

observability logging book

2 — Log Schemas

Covers designing a consistent field schema across services so logs from different teams remain queryable together.

observability logging book

4 — Log Pipelines

Covers the collection-to-storage pipeline for logs — parsing, enrichment, and routing before they land in a backend.

observability logging book

5 — Log Sampling

Covers reducing log volume by sampling non-error traffic while preserving full fidelity on errors and slow requests.

observability logging book

6 — Log Retention

Covers setting retention windows per log tier and the tradeoff between debugging lookback and storage cost.

observability logging book

7 — Cost Optimization

Covers the log-specific levers — sampling, field-level filtering, and tiered storage — for controlling ingest and storage spend.

observability logging book

1 — Why Tracing Exists

Covers the request-fan-out problem that metrics and logs can't solve alone, and why tracing became necessary in microservice architectures.

observability tracing book

2 — Trace Context

Covers the trace ID / span ID / trace flags that identify a request and its position in a trace, and how they are carried across process boundaries.

observability tracing book

3 — Span Modeling

Covers what a span should represent — operation boundaries, parent/child relationships, and span attributes vs. events.

observability tracing book

4 — Context Propagation

Covers how trace context survives async boundaries, message queues, and batch jobs — and the common places it silently breaks.

observability tracing book

5 — Trace Sampling

Covers head-based sampling decisions made at trace start, and their tradeoff against tail-based sampling on completeness vs. cost.

observability tracing book

6 — Tail Sampling

Covers sampling decisions made after a trace completes, keeping error and slow traces at the cost of buffering full traces at the collector.

observability tracing book

8 — Service Graphs

Covers deriving a live service dependency graph from trace data, and using it for blast-radius and dependency-health analysis.

observability tracing book

1 — CPU Profiling

Covers sampling-based CPU profiling — what a flame graph represents and how to read one to find a hot function.

observability profiling book

2 — Memory Profiling

Covers allocation profiling and how it differs from CPU profiling in what it samples and what questions it answers.

observability profiling book

3 — Heap Analysis

Covers heap snapshot analysis for finding retained-object leaks that GC alone will not surface.

observability profiling book

4 — Goroutines and Threads

Covers profiling concurrency primitives — goroutine/thread counts and blocking profiles — to find contention and leaks.

observability profiling book

10 — Collector Pipelines

Covers composing multiple named pipelines in one Collector for signal-specific or team-specific routing.

observability opentelemetry book

11 — Processors

Covers batching, filtering, attribute-mutation, and tail-sampling processors and the order sensitivity of a processor chain.

observability opentelemetry book

12 — Exporters

Covers configuring multiple concurrent exporters and the retry/queueing behavior that protects against backend outages.

observability opentelemetry book

13 — Connectors

Covers connectors that derive one signal type from another inside the Collector, e.g. generating span metrics from trace data.

observability opentelemetry book

14 — Scaling Collectors

Covers horizontally scaling Collector fleets — load balancing, trace-ID-hash routing for tail sampling, and per-tier resource sizing.

observability opentelemetry book

2 — OTLP Protocol

Covers the OTLP wire protocol — its protobuf schema and gRPC/HTTP transport — as the common export format across signals.

observability opentelemetry book

3 — SDK Internals

Covers how an OTel SDK turns instrumentation calls into batched, exported telemetry — processors, exporters, and the pipeline between them.

observability opentelemetry book

5 — Manual Instrumentation

Covers hand-written spans, metrics, and log correlation for business-specific telemetry auto-instrumentation cannot infer.

observability opentelemetry book

6 — Semantic Conventions

Covers OTel's shared attribute vocabulary and why consistent naming is what makes two teams' telemetry queryable together.

observability opentelemetry book

7 — Resources

Covers Resource attributes — the identity of the process/host/service emitting telemetry — as distinct from per-signal attributes.

observability opentelemetry book

1 — Instrumenting Web APIs

Covers span and metric conventions for HTTP/gRPC API instrumentation — route templating, status code buckets, and latency histograms.

observability instrumentation book

2 — Microservices

Covers instrumenting service-to-service calls consistently enough that a fleet-wide service graph and RED dashboard fall out for free.

observability instrumentation book

3 — Messaging Systems

Covers instrumenting producer/consumer boundaries in queues and streams, where trace context propagation is easiest to get wrong.

observability instrumentation book

4 — Databases

Covers instrumenting query spans and connection-pool metrics without leaking query parameter values as high-cardinality attributes.

observability instrumentation book

5 — Caches

Covers hit/miss/eviction metrics and cache-specific span attributes that distinguish a cache problem from a backing-store problem.

observability instrumentation book

6 — Kubernetes Workloads

Covers instrumenting pods and controllers so workload telemetry correlates cleanly with cluster-level Kubernetes signals.

observability instrumentation book

7 — Serverless

Covers instrumenting cold-start latency and short-lived execution contexts where traditional agent-based collection does not fit.

observability instrumentation book

8 — Batch Jobs

Covers instrumenting long-running, non-request-driven jobs where RED-method dashboards do not directly apply.

observability instrumentation book

9 — Background Workers

Covers instrumenting queue-consumer worker pools — backlog depth, processing latency, and retry/dead-letter visibility.

observability instrumentation book

1 — Kubernetes Metrics

Covers the cAdvisor/kubelet/kube-state-metrics metric surfaces and which one answers which question about a cluster.

observability kubernetes book

2 — Control Plane Monitoring

Covers monitoring the API server, etcd, scheduler, and controller-manager — the control plane's own health as a distinct concern from workload health.

observability kubernetes book

3 — Node Monitoring

Covers node-level resource pressure signals and how they surface as pod evictions and scheduling failures.

observability kubernetes book

4 — Pod Monitoring

Covers pod lifecycle, restart, and readiness/liveness signal correlation with application-level telemetry.

observability kubernetes book

5 — Cluster Events

Covers the Kubernetes Events API as a signal type distinct from metrics and logs, and its short default retention.

observability kubernetes book

6 — Container Runtime

Covers container-runtime-level signals (CRI metrics, OOM kills) that sit below the kubelet's own reporting.

observability kubernetes book

7 — Service Mesh Observability

Covers the telemetry a sidecar mesh generates for free — mTLS, retries, and per-hop latency — versus what still needs app-level instrumentation.

observability kubernetes book

8 — eBPF Based Observability

Covers kernel-level eBPF telemetry collection as a zero-instrumentation alternative for network and syscall-level visibility.

observability kubernetes book

1 — AWS

Covers CloudWatch's metric/log/trace surfaces and where AWS-native telemetry needs augmenting with OTel for cross-account visibility.

observability cloud book

2 — Azure

Covers Azure Monitor and Application Insights as the native telemetry surface, and their integration points with an OTel-based pipeline.

observability cloud book

3 — Google Cloud

Covers Google Cloud's operations suite (Cloud Monitoring/Logging/Trace) and its native OTLP ingestion path.

observability cloud book

4 — Hybrid Cloud

Covers unifying telemetry across on-prem and cloud environments where network topology and identity differ per environment.

observability cloud book

5 — Multi Cloud

Covers the added complexity of a telemetry pipeline that must normalize signals from more than one cloud provider's native tooling.

observability cloud book

1 — Prometheus

Covers Prometheus as the reference pull-based metrics engine — see the dedicated Prometheus book for full depth; this chapter covers only its role in the broader platform.

observability data-platforms book

3 — Loki

Covers Loki's index-light, label-indexed log storage model and how it differs from full-text log indexing.

observability data-platforms book

4 — Tempo

Covers Tempo’s object-storage-backed, trace-ID-lookup model for cost-efficient distributed trace storage.

observability data-platforms book

5 — Pyroscope

Covers Pyroscope as a continuous-profiling backend and its data model for flame-graph-over-time queries.

observability data-platforms book

6 — Elasticsearch

Covers Elasticsearch as a full-text-indexed log and event store, and its cost/flexibility tradeoff against label-indexed alternatives.

observability data-platforms book

7 — Clickhouse

Covers ClickHouse as a columnar OLAP engine increasingly used as a unified backend for logs, traces, and wide events.

observability data-platforms book

8 — Opensearch

Covers OpenSearch as the open-source Elasticsearch fork and its divergence points relevant to an observability backend choice.

observability data-platforms book

3 — RED Method

Covers Rate/Errors/Duration as the request-driven-service adaptation of the golden signals.

observability visualization book

4 — USE Method

Covers Utilization/Saturation/Errors as the resource-driven adaptation of the golden signals, for infrastructure rather than services.

observability visualization book

5 — Executive Dashboards

Covers designing business-outcome dashboards for an audience that does not want a raw p99 latency panel.

observability visualization book

6 — Engineering Dashboards

Covers designing debugging-oriented dashboards for the on-call engineer, optimized for time-to-first-signal during an incident.

observability visualization book

7 — Business Observability

Covers connecting telemetry to business KPIs — conversion, revenue, order completion — so reliability work has a business narrative.

observability visualization book

2 — Symptoms vs Causes

Covers distinguishing 'users are affected' alerts from 'a specific subsystem misbehaved' alerts, and why only the former should page.

observability alerting book

3 — Slo Based Alerts

Covers deriving alert thresholds from an SLO's error budget rather than from arbitrary static thresholds.

observability alerting book

4 — Multi Window Burn Rate Alerts

Covers the multi-window, multi-burn-rate alerting technique that balances fast detection against alert noise.

observability alerting book

5 — Alert Deduplication

Covers grouping and suppressing duplicate alerts from the same root cause so on-call sees one page, not fifty.

observability alerting book

6 — Routing

Covers alert routing rules — team ownership, severity, and escalation paths — as configuration distinct from the alert condition itself.

observability alerting book

7 — Alert Fatigue

Covers diagnosing and reversing an alert-fatigue trend before it causes a real page to get ignored.

observability alerting book

8 — On Call Engineering

Covers structuring on-call rotations, handoffs, and runbook discipline as an engineering practice, not just a schedule.

observability alerting book

1 — SLIs

Covers choosing a Service Level Indicator that actually reflects user-perceived reliability, not just what's easiest to measure.

observability reliability book

3 — Error Budgets

Covers treating the error budget as a spendable risk resource that governs release velocity, not a compliance scorecard.

observability reliability book

4 — Incident Detection

Covers the telemetry-to-detection path — how observability signals trigger the moment an incident is declared.

observability reliability book

6 — Postmortems

Covers writing a blameless postmortem that traces the incident timeline back to instrumentation and observability gaps, not just the code fix.

observability reliability book

7 — Chaos Engineering

Covers using deliberate fault injection to validate that observability signals actually fire the way an incident response plan assumes.

observability reliability book

1 — Cost Drivers

Covers the ingest-volume, cardinality, and retention-window levers that actually drive observability platform cost.

observability cost book

2 — Telemetry Sampling

Covers sampling as a cost lever across all three signal types, and the fidelity it trades away.

observability cost book

3 — Downsampling

Covers reducing metric resolution over time as data ages, and the query-accuracy tradeoff that comes with it.

observability cost book

4 — Retention Policies

Covers setting differentiated retention per signal type and per tier, driven by actual debugging-lookback needs rather than defaults.

observability cost book

5 — Compression

Covers the compression techniques (chunk encoding, columnar compression) that let TSDBs and log stores shrink storage cost per sample.

observability cost book

6 — Tiered Storage

Covers hot/warm/cold storage tiering — recent data on fast disks, older data in object storage — and its query-latency tradeoff.

observability cost book

7 — FinOps for Observability

Covers attributing observability spend back to the teams generating the telemetry, and using that attribution to drive down cost at the source.

observability cost book

1 — RBAC

Covers role-based access control for telemetry — who can query which tenant or team’s data, and at what granularity.

observability security book

2 — Multi Tenancy

Covers the isolation guarantees a shared observability platform must enforce so one tenant can never read another’s telemetry.

observability security book

3 — Data Privacy

Covers the privacy obligations that apply to telemetry data specifically, distinct from the privacy obligations on the underlying application data.

observability security book

4 — PII Redaction

Covers how PII ends up in telemetry by accident (log lines, span attributes, user IDs) and where in the pipeline to catch it.

observability security book

6 — Audit Logging

Covers the query audit log — who ran what query against what data — as security telemetry about the platform itself.

observability security book

7 — Secret Management

Covers keeping API keys, tokens, and credentials out of telemetry payloads and out of collector/exporter configuration in plaintext.

observability security book

3 — Telemetry Pipelines

Covers building the reusable pipeline infrastructure (Collector fleets, routing config) that self-service onboarding depends on.

observability platform-engineering book

5 — GitOps

Covers deploying observability-as-code configuration through the same GitOps reconciliation loop as application deployments.

observability platform-engineering book

6 — Terraform

Covers managing observability backend resources (data sources, alert rules, access policies) as Terraform-managed infrastructure.

observability platform-engineering book

7 — Platform APIs

Covers designing the API surface a platform team exposes so other teams can provision telemetry resources programmatically.

observability platform-engineering book

8 — Multi Region Design

Covers designing an observability platform's own multi-region topology so it does not share a single point of failure with the workloads it observes.

observability platform-engineering book

2 — Root Cause Analysis

Covers automated root-cause analysis as an investigation loop over existing telemetry, not a fixed trigger-action mapping.

observability aiops book

3 — Anomaly Detection

Covers statistical and ML-based anomaly detection on time series, and its false-positive tradeoff against static thresholds.

observability aiops book

4 — Event Correlation

Covers correlating alerts, deploys, and changes across systems to collapse a flood of related signals into one incident.

observability aiops book

5 — Predictive Alerting

Covers forecasting-based alerting that pages before a threshold breach, and the calibration risk that comes with prediction.

observability aiops book

6 — LLM Assisted Troubleshooting

Covers using an LLM over existing telemetry for incident triage, and the hard boundary between read-only investigation and write-capable remediation.

observability aiops book

7 — Autonomous Remediation

Covers safely scoping autonomous remediation actions, and why the read/write safety line matters more here than anywhere else in the stack.

observability aiops book

1 — Observability System Design Questions

Covers the recurring system-design prompt shape — 'design a metrics/logging/tracing platform at scale' — and the tradeoffs interviewers probe for.

observability maang-prep book

2 — Troubleshooting Case Studies

Covers worked troubleshooting scenarios (e.g. a collector agent pinned at 100% CPU) as a rehearsal for live debugging interview questions.

observability maang-prep book

3 — Telemetry Design Exercises

Covers exercises in designing the telemetry (metrics/logs/traces/labels) for a given service from scratch, a common interview format.

observability maang-prep book

4 — Incident Walkthroughs

Covers narrating a real incident timeline and RCA in interview-answer form, structured for a behavioral or systems-thinking question.

observability maang-prep book

5 — Production Debugging

Covers the live-debugging interview format — given a symptom, which signal do you check first and why.

observability maang-prep book

6 — Capacity Planning

Covers estimating ingest rate, series count, and storage growth for a hypothetical platform, a common quantitative interview question.

observability maang-prep book

7 — Scaling to Millions of Metrics

Covers the specific architectural changes (sharding, downsampling, federation) required as series count crosses common scale thresholds.

observability maang-prep book

8 — Whiteboard Architecture Problems

Covers open-ended whiteboard prompts on observability platform architecture and the tradeoff-driven answer structure interviewers expect.

observability maang-prep book

9 — Maang Interview Questions

Covers a curated question bank spanning system design, troubleshooting, and behavioral formats specific to MAANG-level observability/SRE interviews.

observability maang-prep book

1 — Uber

Covers Uber's published observability architecture and scaling decisions as a case study, cited from public engineering sources.

observability case-studies book

2 — Google

Covers Google's observability practices (Monarch, Dapper) and their influence on the broader industry's approach, cited from public sources.

observability case-studies book

3 — Meta

Covers Meta's internal observability and tracing infrastructure as described in public engineering writing.

observability case-studies book

4 — Netflix

Covers Netflix's observability and chaos engineering practices as described in public engineering writing.

observability case-studies book

5 — Amazon

Covers Amazon's operational excellence and observability practices as described in public engineering writing.

observability case-studies book

6 — Microsoft

Covers Microsoft's observability practices across Azure and first-party services as described in public engineering writing.

observability case-studies book

7 — Cloud Native CNCF Projects

Covers the CNCF observability landscape (OTel, Prometheus, and related projects) as a case study in open-source-driven standardization.

observability case-studies book

1 — OpenTelemetry Semantic Conventions

A quick-reference index of OTel semantic convention attribute names by signal and domain.

observability reference book

10 — Production Readiness Checklist

A reference checklist for verifying a service has adequate observability coverage before a production launch.

observability reference book

2 — Promql Cheat Sheet

A quick-reference index of common PromQL functions and query patterns.

observability reference book

3 — Logql Cheat Sheet

A quick-reference index of common LogQL query patterns for Loki.

observability reference book

4 — Traceql Cheat Sheet

A quick-reference index of common TraceQL query patterns for Tempo.

observability reference book

5 — OTLP Reference

A quick-reference index of the OTLP protocol's message types and transport options.

observability reference book

6 — Kubernetes Telemetry Reference

A quick-reference index of Kubernetes-native telemetry sources and what each one exposes.

observability reference book

7 — Observability Design Patterns

A quick-reference index of recurring observability design patterns introduced throughout this book.

observability reference book

8 — Common Anti Patterns

A quick-reference index of common observability anti-patterns and the failure mode each one causes.

observability reference book

9 — Telemetry Cost Estimation

A worked reference for estimating telemetry ingest volume and cost from service count, request rate, and label cardinality.

observability reference book

Observability Engineering

A book-shaped table of contents for observability engineering: foundations through architecture, metrics, logging, tracing, profiling, OpenTelemetry, instrumentation, Kubernetes/cloud, data platforms, visualization, alerting, SRE integration, cost, security, platform engineering, AI-driven operations, and MAANG interview preparation — cross-linking existing prometheus/grafana-cloud/kubernetes/sre/platform-engineering notes instead of duplicating them.

observability book reference maang-prep

Replication Guides: Instrumenting Your Own Project

Step-by-step, copy-paste guides for replicating SignalForge's OpenTelemetry instrumentation pattern in a new .NET/Python/Angular/RabbitMQ/K8s project.

ShipSolid Signal Forge Observability Guides
Jul 30, 2026

Guide: Collector & Pipeline Setup

Step-by-step: stand up a Grafana Alloy + grafana/k8s-monitoring Helm chart pipeline that receives OTLP traces/metrics/logs from your services and exports to Grafana Cloud or a self-hosted backend.

ShipSolid Signal Forge Observability Guides
Jul 30, 2026

Guide: .NET Instrumentation

Step-by-step: instrument an ASP.NET Core / gRPC .NET 8 service with OpenTelemetry — SDK wiring, custom spans and metrics, and RabbitMQ producer-side async trace propagation via the outbox pattern.

ShipSolid Signal Forge Observability Guides .NET
Jul 30, 2026

Guide: Frontend RUM Instrumentation

Step-by-step: instrument an Angular frontend with Grafana Faro for browser RUM — SDK setup, runtime config injection, source-map upload, and browser-to-backend trace linkage.

ShipSolid Signal Forge Observability Guides Frontend
Jul 30, 2026

Guide: Python Instrumentation

Step-by-step: instrument a Python FastAPI service with OpenTelemetry — SDK wiring, custom metrics, and RabbitMQ consumer-side async trace propagation via manual context extraction and SpanLink.

ShipSolid Signal Forge Observability Guides Python
Jul 30, 2026

Log-to-Trace Correlation

How SignalForge correlates logs to traces via node-level tailing and Loki structured metadata, across both local and cloud monitoring modes.

ShipSolid Signal Forge Observability
Jul 10, 2026

Exemplars

How exemplars link histogram metric observations to sampled traces end-to-end, from SDK emission through Prometheus/Mimir to Grafana.

ShipSolid Signal Forge Observability
Jul 10, 2026

OTel Signal Contracts

The OpenTelemetry signal contracts—spans, metrics, and log fields—for every SignalForge service and the frontend RUM app.

ShipSolid Signal Forge Observability
Jul 10, 2026

Observability Pipeline

How the Grafana Alloy collector pipeline differs between SignalForge's local (hand-authored River) and cloud (Helm chart) monitoring modes.

ShipSolid Signal Forge Observability
Jul 10, 2026

Tail-Based Sampling

How SignalForge's tail-based sampling policies decide which traces to keep, and why span metrics are generated before sampling runs.

ShipSolid Signal Forge Observability
Jul 10, 2026

SLOs & burn-rate alerts

SignalForge's published SLOs, how their SLIs are computed from span metrics, and how multi-window burn-rate alerts are structured.

ShipSolid Signal Forge Observability
Jul 10, 2026

SignalForge Instrumentation Reference

Reference explaining every OpenTelemetry instrumentation decision in the signal-forge lab — what's configured, why, and what correct behavior looks like.

ShipSolid Signal Forge Observability
Jul 10, 2026

Observability Architecture: Questions to Ask

A chronological sequence of 216 questions an architect asks when designing a production-grade observability platform — from business context through multi-tenancy, SLOs, onboarding, and validation.

observability system-design maang-prep architecture

Chapter 1 — Observability Architecture

Metrics, logs, traces, and profiles as the four correlated signal types every observability platform is built around.

system-design observability book
Jul 18, 2026

Chapter 2 — Telemetry Pipelines

OpenTelemetry, OTLP, collectors, sampling, and aggregation as the pipeline that gets a signal from emission to storage without becoming the outage itself.

system-design observability book
Jul 18, 2026

Chapter 3 — Monitoring at Scale

Prometheus, Mimir, Cortex, and Thanos as the horizontally-scaled answer to a single Prometheus instance running out of room.

system-design observability book
Jul 18, 2026

Chapter 4 — Alerting Systems

Multi-window burn-rate alerts, recording rules, routing, and deduplication as the difference between an actionable page and noise.

system-design observability book
Jul 18, 2026

Chapter 1 — Telemetry Ingestion Pipeline

Principal/Staff-level design of a high-throughput telemetry ingestion pipeline — requirements, architecture, deep dives, and trade-offs at 10x scale.

system-design observability telemetry maang-prep

1. Clarify Requirements First

The first-5-minutes clarifying questions for the telemetry ingestion pipeline design — signal types, scale envelope, consistency/durability, multi-tenancy, and protocol — whose answers change the entire architecture.

system-design observability telemetry maang-prep requirements

2. High-Level Architecture

The producers → ingestion gateway → Kafka → processors → storage diagram for the telemetry ingestion pipeline, plus the push-over-pull key insight to state early in the interview.

system-design observability telemetry maang-prep architecture

3.1 Layer 1: Ingestion Frontier

Layer 1 of the telemetry ingestion pipeline: the ingestion frontier — responsibilities, fan-in at 100K+ agents, protocol negotiation, batching, backpressure, and rate limiting.

system-design observability telemetry maang-prep ingestion-frontier

3.2 Layer 2: Durable Buffer (Kafka)

Layer 2 of the telemetry ingestion pipeline: the Kafka durable buffer — topic design, partitioning strategy, hot-spots, retention, retry/delivery semantics, producer config, consumer lag, and schema evolution.

system-design observability telemetry maang-prep kafka

3.3 Layer 3: Processing / Enrichment

Layer 3 of the telemetry ingestion pipeline: processing and enrichment — the metric processor, cardinality enforcement, tail-based sampling, the log processor, metric temporality, and Kubernetes metadata enrichment.

system-design observability telemetry maang-prep processing

3.4 Scaling Each Layer

Scaling unit and trigger for every layer of the telemetry ingestion pipeline, from the ingestion gateway through to storage.

system-design observability telemetry maang-prep scaling

3.5 Failure Modes and Mitigations

Failure modes and mitigations across the telemetry ingestion pipeline — gateway crashes, broker failure, processor crashes, span explosion, cardinality rejection, storage saturation, and clock skew.

system-design observability telemetry maang-prep failure-modes

3.6 Multi-Tenancy

Multi-tenancy isolation layers and quota enforcement points across the telemetry ingestion pipeline, from network inbound to the storage write path.

system-design observability telemetry maang-prep multi-tenancy

3.7 Data Tiering and Compaction (Mimir/Thanos)

Data tiering and compaction in Mimir/Thanos — the ingester-to-object-store journey, compaction levels, vertical compaction/dedup, compaction storms, and the config knobs that control them.

system-design observability telemetry maang-prep storage

3.8 Global Deployment Topology

Global deployment topology for the telemetry ingestion pipeline — regional writes vs. a global cluster, async replication to a global query tier, and agent failover.

system-design observability telemetry maang-prep global-topology

4. Observability of the Pipeline Itself

What to instrument at every layer of the telemetry ingestion pipeline, the pipeline's own SLOs, distributed tracing of the pipeline itself, and the synthetic canary that catches stalls no component metric surfaces.

system-design observability telemetry maang-prep slo

5. Trade-offs at 10x Scale

The 'what would you do differently at 10x' trade-off questions for the telemetry ingestion pipeline: Kafka vs. direct write, trace-assembly sharding, schema-on-read vs. write, sampling strategy, protocol choice, and push vs. pull.

system-design observability telemetry maang-prep trade-offs

6. Interview Anchor Points (What to Say Out Loud)

The sentences that signal principal-level thinking for the telemetry ingestion pipeline design — ready to say unprompted in an interview.

system-design observability telemetry maang-prep interview-anchors

7. Component Map (What Exists in the Wild)

OSS and managed-SaaS options for every layer of the telemetry ingestion pipeline, mapped against ShipSolid's own production experience.

system-design observability telemetry maang-prep component-map

8. Quick-Reference Cheat Sheet

One-line answers for every load-bearing design decision in the telemetry ingestion pipeline — the last thing to review before an interview.

system-design observability telemetry maang-prep cheat-sheet

9. Practice Interview Questions

Twelve full-length practice prompts for the telemetry ingestion pipeline design, each linked to its own worked, principal-level answer.

system-design observability telemetry maang-prep practice-questions

Authentication at the Ingestion Frontier: mTLS, Bearer Tokens, API Keys

How the gateway proves an agent's credential is valid — mTLS handshake validation, JWT bearer token signature checks, and API key lookups — with the revocation-speed vs operational-complexity trade-off between them, and credential rotation at 10M-agent scale.

system-design observability telemetry maang-prep authentication security

Head vs. Tail Sampling for Distributed Traces

The sampling decision point determines whether a trace pipeline needs to buffer spans in memory — head-based decides at trace start, tail-based decides after the trace completes.

system-design observability telemetry maang-prep sampling

Protocol Termination at the Ingestion Frontier

What actually happens where the wire protocol ends — TCP/TLS handoff, HTTP/2 frame demux, gRPC message decode, protobuf deserialization — and why L4 vs L7 termination and connection-lifecycle tuning are the load-bearing decisions here, not the crypto itself.

system-design observability telemetry maang-prep networking protocols

Q1: 500M Samples/Sec, Zero Drop on Rolling Deploy

Full principal-level solution: design a telemetry ingestion pipeline for 500M metric samples/sec from 100K services globally with a zero-drop guarantee during rolling deployment of the ingestion tier.

system-design observability telemetry maang-prep practice-q

Q10: Self-Service Tenant Onboarding With Zero Platform-Team Involvement

Full principal-level solution: design a self-service tenant onboarding API for a telemetry pipeline that protects shared infrastructure from a misbehaving new tenant on day one.

system-design observability telemetry maang-prep practice-q

Q11: Redesigning the Ingestion Frontier for a Compromised-Agent Threat Model

Full principal-level solution: redesign the telemetry ingestion frontier assuming a compromised agent sends malformed and adversarial payloads — oversized batches, spoofed tenant IDs, garbage label values.

system-design observability telemetry maang-prep practice-q security

Q12: Exactly-Once for One Billing Tenant While Others Stay At-Least-Once

Full principal-level solution: support exactly-once ingestion for a single billing-critical tenant in a shared pipeline that is at-least-once everywhere else, and account for what it costs.

system-design observability telemetry maang-prep practice-q

Q2: Cardinality Storm — Detect and Mitigate Without Affecting Other Tenants

Full principal-level solution: a tenant sends 50M unique label combinations/minute causing TSDB compaction storms — design detection and mitigation that isolates the blast radius to that tenant.

system-design observability telemetry maang-prep practice-q

Q3: Trace Sampling Loses Spans During Incident Peaks — Redesign

Full principal-level solution: the trace pipeline drops spans exactly when incidents spike trace volume — diagnose the failure mode and redesign the tail-sampling pipeline to survive it.

system-design observability telemetry maang-prep practice-q

Q4: A Metric's Journey From Pod to Dashboard — Every Failure Point

Full principal-level solution: trace a single metric data point from a Kubernetes pod to a queryable dashboard, identifying every failure point along the way and how each is detected.

system-design observability telemetry maang-prep practice-q

Q5: Adding Continuous Profiling to an Existing MELT Pipeline

Full principal-level solution: extend an existing metrics + logs + traces pipeline with continuous profiling as a fourth signal, without a full redesign.

system-design observability telemetry maang-prep practice-q

Q6: Compactor Queue Backing Up During a Multi-Tenant Flush

Full principal-level solution: diagnose a compactor backlog causing query latency spikes during a large multi-tenant flush, and mitigate it without pausing ingestion.

system-design observability telemetry maang-prep practice-q

Q7: A Region's Gateway Goes Dark — Blast Radius Walkthrough and Redesign

Full principal-level solution: walk through the consequences of a 10-minute regional ingestion gateway outage, then redesign the topology to shrink the blast radius.

system-design observability telemetry maang-prep practice-q

Q8: Counters Resetting to Zero After an OTel SDK Upgrade

Full principal-level solution: diagnose and fix a tenant's dashboards showing counters reset to zero every few minutes after an OTel SDK upgrade, without requiring instrumentation changes.

system-design observability telemetry maang-prep practice-q

Q9: Cut Ingestion Infrastructure Cost 40% Without Violating SLOs

Full principal-level solution: a FinOps-driven cost-reduction pass on a telemetry ingestion pipeline — where to look first, what levers exist at each layer, and what you trade away.

system-design observability telemetry maang-prep practice-q

Rate Limiting Architecture: Token Bucket, Gossip, and Envoy Global Limits

Three ways to enforce rate limits across a replicated gateway fleet — centralized Redis token bucket, decentralized gossip-based estimation, and Envoy's sidecar-plus-global-service pattern — with the precision/SPOF/latency trade-offs between them.

system-design observability telemetry maang-prep rate-limiting

Retry Policies and the Delivery Semantics They Produce

Every retry decision is made along three axes — trigger, backoff, budget — before delivery semantics even enter the picture. At-least-once, at-most-once, and exactly-once are the accumulated side effect of those decisions at every hop, not a separate design choice.

system-design observability telemetry maang-prep retry-policies delivery-semantics kafka

Schema Validation and Rejection at the Ingestion Frontier

What the gateway actually checks before accepting a payload — structural validation vs semantic cardinality checks, why rejection has to happen before the buffer, OTLP PartialSuccess as an alternative to whole-batch rejection, and the forward-compatibility trap of validating too strictly.

system-design observability telemetry maang-prep validation

Telemetry Gateways: Protocol-Specific Ingestion Points

The ingestion frontier is a fleet of protocol-specific gateways — OTLP, Prometheus remote-write, Syslog, Kafka, and legacy tracing/metrics protocols — each terminating a different producer's wire format before a shared auth/rate-limit/tenant-routing layer.

system-design observability telemetry maang-prep gateways

Tenant Identification and Routing at the Ingestion Frontier

How the gateway decides whose data this is — cert/API-key-derived tenant identity, propagation as a Kafka header and X-Scope-OrgID, and the shared-topic-with-filter vs per-tenant-topic vs shuffle-sharded-pool routing trade-off.

system-design observability telemetry maang-prep multi-tenancy

Chapter 2 — Metrics Storage (TSDB)

Write amplification, chunk encoding, compaction, cardinality explosion.

system-design observability maang-prep book

Chapter 3 — Log Aggregation System

Structured vs. unstructured, schema-on-read vs. schema-on-write, deduplication.

system-design observability maang-prep book

Chapter 4 — Distributed Tracing Backend

Trace assembly from spans, tail-based vs. head-based sampling.

system-design observability maang-prep book

Chapter 5 — OpenTelemetry Collector Pipeline

Multi-pipeline routing, processor chaining, exporter fan-out.

system-design observability maang-prep book

Chapter 6 — Multi-tenant Observability Platform

Tenant isolation, quota enforcement, cost attribution.

system-design observability maang-prep book

Chapter 7 — SLO / Error Budget Tracking System

Burn rate calculation, multi-window alerting, budget ledger.

system-design observability maang-prep book

System Design

Principal/Staff-level system design reference collection for MAANG interview preparation — observability pipelines, distributed systems, reliability engineering, and beyond.

system-design maang-prep observability

# Infrastructure Platform Engineering

All Infrastructure Platform Engineering notes →

# Kubernetes Platform Engineering

All Kubernetes Platform Engineering notes →