DEVOPS TRIBUNE ENGINEERING INTELLIGENCE FOR THE REAL WORLD
Observability and Monitoring Logo
12 TELEMETRY & SRE INCIDENT SCENARIOS

Observability & SRE Metrics Interview Questions and Scenarios

Excel in Staff SRE and Principal Reliability Architect interviews. From OpenTelemetry collector pipelines and Prometheus TSDB high-cardinality explosions to Google SRE multi-window burn rate alerts, W3C trace context propagation, and eBPF kernel profiling, answer with operational authority.

Production Observability, Prometheus, Grafana, and OpenTelemetry Architecture Infographic
SCENARIO 01 • TELEMETRY EVOLUTION

Why is the traditional 'Three Pillars of Observability' (Metrics, Logs, Traces) insufficient in modern distributed architectures?

⚡ 30-Second Elevator Pitch

“Treating metrics, logs, and traces as three separate data silos creates fragmented triage workflows where engineers manually copy timestamps between disconnected tools. Modern observability is unified by correlation: Metrics detect that a problem exists; Exemplars and Distributed Traces isolate which microservice and code span is failing; Structured Logs provide rich local context; and Continuous Profiling (eBPF) pinpoints the exact line of code consuming CPU or leaking memory. Without unified trace IDs and baggage context linking them together, you have three data dumps, not observability.”

S Situation

During a critical checkout degradation, our on-call engineers spent 45 minutes manually cross-referencing Datadog metrics graphs against Splunk log timestamps without finding root cause.

T Task

Unify telemetry signals and reduce Mean Time to Identify (MTTI) to under 3 minutes.

A Action

Implemented OpenTelemetry SDKs with W3C trace context injection. Configured Grafana Tempo for distributed tracing and enabled Prometheus Exemplars so engineers clicking a latency spike metric directly jumped to the trace waterfall and corresponding structured JSON logs.

R Result

Mean Time to Identify (MTTI) dropped from 45 minutes to 2 minutes 15 seconds. Engineers resolved incidents directly from single-pane correlated dashboards.

SCENARIO 02 • TELEMETRY PIPELINES

How do you architect an enterprise OpenTelemetry (OTel) Collector pipeline? What is the role of Receivers, Processors, and Exporters?

⚡ 30-Second Elevator Pitch

“The OpenTelemetry Collector is a high-performance proxy written in Go that acts as a vendor-neutral telemetry router (explore full architecture in OpenTelemetry vs Prometheus and our hands-on OpenTelemetry Distributed Tracing Guide). It operates as a three-stage pipeline: 1) Receivers ingest telemetry via push or pull protocols (OTLP gRPC, Jaeger, Prometheus, Zipkin); 2) Processors transform and sanitize the data in memory (batching for network efficiency, memory limiter to prevent OOM, tail-based sampling to keep 100% of errors while discarding 99% of normal 200 OK traces, and PII redacting); 3) Exporters translate and forward telemetry to storage backends (Prometheus, Grafana Tempo, Loki, Datadog).”

OpenTelemetry Pipeline Configuration

yaml • otel-collector-config.yaml
otel-collector-config.yaml — OTLP Ingestion & Batch Pipeline
prometheus-scrape-rules.yaml — Kubernetes Pod Auto-Discovery
promql-slo-fast-burn.yaml — Multi-Window Multi-Burn Rate Alerting
recording-rules.yaml — Prometheus Latency Quantiles
receivers:
  otlp:
    protocols:
      grpc: { endpoint: 0.0.0.0:4317 }
      http: { endpoint: 0.0.0.0:4318 }

processors:
  memory_limiter:
    check_interval: 1s
    limit_percentage: 75
    spike_limit_percentage: 20
  batch:
    send_batch_size: 1000
    timeout: 5s
  tail_sampling:
    decision_wait: 10s
    expected_new_traces_per_sec: 2000
    policies:
      - name: sample-errors
        type: status_code
        status_code: { status_codes: [ERROR] }

exporters:
  otlp/tempo:
    endpoint: tempo-distributor.monitoring:4317
    tls: { insecure: true }
  prometheus:
    endpoint: 0.0.0.0:8889

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [memory_limiter, tail_sampling, batch]
      exporters: [otlp/tempo]
SCENARIO 03 • METRIC STORAGE ENGINE

What is a Prometheus high-cardinality explosion? How do you prevent it and diagnose memory runaway in Prometheus TSDB?

⚡ 30-Second Elevator Pitch

“In Prometheus TSDB, cardinality is the total number of unique time series generated by the Cartesian product of all metric labels. When a developer mistakenly adds an unbounded dynamic label (like `user_id`, `email`, `order_uuid`, or `ip_address`), millions of unique time series are created in the in-memory Head chunk. This causes Prometheus memory usage to explode, triggering Linux kernel OOM kills and crippling compaction. We prevent this by enforcing metric linting in CI, configuring `metric_relabel_configs` to drop rogue labels, and querying `tsdb-status` to identify top cardinality talkers.”

S Situation

Our production Prometheus instance crashed every 20 minutes with OOMKilled (Exit 137), consuming over 48GB of RAM within minutes of starting.

T Task

Isolate the specific metric causing the time series explosion and restore Prometheus stability without dropping all metrics.

A Action

Queried the Prometheus TSDB Status API (`/api/v1/status/tsdb`). Discovered that `http_requests_total` had 8.4 million active series due to a new `trace_id` label added by a frontend developer. Added a `metric_relabel_configs` block to strip `trace_id` at scrape time.

R Result

Active time series dropped from 8.4 million to 45,000. Prometheus RAM consumption stabilized at 3.2GB, eliminating crashes permanently.

Prometheus Relabeling to Drop Dangerous Dynamic Labels

yaml • prometheus-relabel.yaml
scrape_configs:
  - job_name: 'api-service'
    kubernetes_sd_configs:
      - role: pod
    metric_relabel_configs:
      - regex: 'trace_id|user_id|email|client_ip'
        action: labeldrop
SCENARIO 04 • MONITORING METHODOLOGIES

When do you apply the RED Method versus the USE Method? How do you structure a dashboard hierarchy?

⚡ 30-Second Elevator Pitch

“The RED Method (Rate, Errors, Duration) was created by Tom Wilkie specifically for microservices and request-driven systems from the perspective of the customer. The USE Method (Utilization, Saturation, Errors) was created by Brendan Gregg for hardware and infrastructure resources from the perspective of the machine. In our dashboard hierarchy, Level 1 is RED (Are customers experiencing latency or errors?); Level 2 is Architecture Dependencies (Which downstream database or microservice is slow?); and Level 3 is USE (Is the underlying node experiencing CPU saturation, disk await, or memory pressure?).”

RED vs. USE Comparative Matrix

Method Target Domain Core Metrics Primary Question Answered
RED Method APIs, Microservices, Web Requests Rate (QPS), Errors (5xx), Duration (P99 Latency) Is the application functioning properly for the end user?
USE Method CPUs, Memory, Disks, Network Interfaces Utilization (%), Saturation (Queue length), Errors (Drops) Is the hardware or system resource overwhelmed?
SCENARIO 05 • SRE INCIDENT RESPONSE

How do Google SRE Multi-Window Multi-Burn-Rate alerts work? Why are single-window static alerts an anti-pattern?

⚡ 30-Second Elevator Pitch

“Single-window threshold alerts (like 'Alert if error rate > 1% for 5 minutes') produce terrible false alarms: a brief network blip wakes up on-call engineers at 3 AM even if the service self-healed, while a slow 0.5% leak bleeds your monthly error budget unnoticed. Multi-window burn rate alerts measure the rate at which you consume your 30-day error budget. For a critical page (14.4x burn rate = 2% of budget lost in 1 hour), SRE requires two concurrent windows: a long window (1 hour) to confirm meaningful budget impact, AND a short window (5 minutes) to ensure the incident is still actively occurring before paging.”

S Situation

Our on-call team received 48 pages per week. Over 80% were transient spikes that resolved before the engineer logged into their laptop, leading to extreme burnout and ignored pages.

T Task

Migrate all paging alerts to Google SRE SLO Multi-Window Multi-Burn-Rate logic and cut false pages by over 75%.

A Action

Defined a 99.9% 30-day availability SLO. Created Prometheus alerting rules with dual-window conditions: a 1-hour/5-minute window for 14.4x burn (Page immediately) and a 6-hour/30-minute window for 6x burn (File low-priority ticket).

R Result

Paging volume plummeted from 48 pages/week to 3 actionable pages/week (94% reduction). Real outages were caught faster with zero false wake-up calls.

Prometheus Multi-Window Burn Rate Alerting Rule

yaml • multi-window-burn-rate.yaml
- alert: ErrorBudgetFastBurn
  expr: |
    (
      sum(rate(http_requests_total{status=~"5.."}[1h]))
      /
      sum(rate(http_requests_total[1h]))
    ) > (14.4 * (1 - 0.999))
    AND
    (
      sum(rate(http_requests_total{status=~"5.."}[5m]))
      /
      sum(rate(http_requests_total[5m]))
    ) > (14.4 * (1 - 0.999))
  for: 2m
  labels:
    severity: page
  annotations:
    summary: "Fast burn rate: 2% of monthly error budget consumed in 1 hour"
    runbook_url: "https://wiki.devopstribune.com/runbooks/checkout-api"
SCENARIO 06 • DISTRIBUTED CONTEXT PROPAGATION

How does W3C Trace Context propagation work across asynchronous message queues (Kafka / SQS)?

⚡ 30-Second Elevator Pitch

“In synchronous HTTP calls, distributed tracing injects W3C standard headers (`traceparent` containing version, trace-id, parent-id, and trace-flags). When communication passes through asynchronous brokers (Kafka or SQS), the HTTP socket connection ends. To preserve the end-to-end trace, the producing service uses an OpenTelemetry Injector to serialize the `traceparent` and optional `tracestate` into Kafka Record Headers or SQS Message Attributes. The consumer extracts these headers, creating a child span with a 'CONSUMER' or 'LINK' relationship, preventing broken, orphaned traces.”

SCENARIO 07 • LOGGING ARCHITECTURE

Compare Grafana Loki's 'index-free' log aggregation against traditional Elasticsearch / OpenSearch indexing.

⚡ 30-Second Elevator Pitch

“Elasticsearch builds an inverted index on every single word in your log lines. While this provides ultra-fast full-text search, the indexing overhead consumes massive RAM, CPU, and expensive NVMe SSD storage (often index data exceeds the raw log size). Grafana Loki borrows Prometheus's architecture: it indexes ONLY metadata labels (namespace, container, pod), compresses raw log lines into gzip chunks, and stores them cheaply in object storage (Amazon S3). Loki scans raw chunks via LogQL grep filters, cutting logging infrastructure costs by 70–85%.”

SCENARIO 08 • USER EXPERIENCE MONITORING

How do Synthetic Monitoring and Real User Monitoring (RUM) complement each other in production?

⚡ 30-Second Elevator Pitch

“Synthetic Monitoring runs automated headless browser probes (Playwright/Puppeteer) from global CDN locations on a continuous schedule to test critical paths (login, checkout, search). Synthetics provide a deterministic baseline independent of user traffic—they alert you at 3 AM if DNS, SSL certificates, or API gateways fail before real customers notice. Real User Monitoring (RUM) captures telemetry from actual customer browsers, capturing Core Web Vitals (LCP, FID, CLS), client ISP latency, and geographic device variances that synthetic probes cannot simulate.”

SCENARIO 09 • QUERY OPTIMIZATION

What causes Grafana dashboard query timeouts on Prometheus? How do you optimize expensive PromQL queries?

⚡ 30-Second Elevator Pitch

“Dashboard timeouts occur when PromQL queries evaluate millions of samples across large time ranges without label selectivity. Common anti-patterns include: 1) Using regular expression matchers without anchoring (`job=~".*service.*"`); 2) Querying high-cardinality raw counters over 30 days instead of using Prometheus Recording Rules; 3) Using `irate()` on dashboards instead of `rate()`, which samples only the last two points and produces noisy graphs; and 4) Nested subqueries like `rate(metric[5m])[1d:1m]`. We resolve this by pre-computing heavy metrics into Recording Rules.”

Prometheus Recording Rule Definition

yaml • recording-rules.yaml
groups:
  - name: api_latency_rules
    interval: 30s
    rules:
      - record: job:http_request_duration_seconds:p99
        expr: |
          histogram_quantile(0.99, sum(rate(http_request_duration_seconds_bucket[5m])) by (le, job))
SCENARIO 10 • ON-CALL HEALTH

How do you audit and remediate an alerting system where 50+ non-actionable alerts fire daily?

⚡ 30-Second Elevator Pitch

“My alert hygiene rubric enforces four non-negotiable criteria: 1) Actionability: Every page must require human cognitive intervention; if the fix is running a script, that script must be automated instead of waking an engineer; 2) Mandatory Runbook: Any alert without a validated `runbook_url` in its annotations is immediately deleted; 3) Symptom over Cause: Alert on customer impact (SLO error budget burn, 5xx spike) rather than transient causes (single server CPU at 90%); and 4) Route by Severity: Critical pages wake people up; non-urgent warnings are routed to Slack channels or Jira tickets.”

SCENARIO 11 • PRODUCTION INCIDENT TRIAGE

Your API's P99 latency spikes from 120ms to 4.5 seconds under modest load. How do you isolate the bottleneck using distributed traces?

⚡ 30-Second Elevator Pitch

“I open the distributed trace waterfall for requests in the 99th percentile and inspect the span timeline breakdown. There are four common culprits: 1) Sequential N+1 downstream calls (a loop invoking another service 50 times sequentially instead of batching); 2) Database Connection Pool Starvation (the span reveals 4 seconds of idle time waiting to acquire a connection from HikariCP/pgpool); 3) Downstream Third-Party Timeouts (unhandled third-party payment gateway latency); or 4) Garbage Collection pauses (a single span has huge duration with zero sub-spans).”

S Situation

Our user profile API experienced a sudden P99 latency spike to 4.2 seconds. Database CPU was at 18% and API server memory was normal.

T Task

Identify the exact code location or resource causing the 4.2-second delay and restore normal sub-150ms P99 latency.

A Action

Inspected distributed traces in Grafana Tempo filtered by `duration > 3s`. The trace waterfall showed that `fetch_user_orders` executed 84 individual SELECT queries sequentially inside a loop (an N+1 ORM query anti-pattern introduced in the latest release) rather than a single parameterized batch query.

R Result

Refactored the ORM call to use batch SQL `WHERE user_id IN (...)`. P99 latency plummeted from 4.2 seconds down to 88 milliseconds.

SCENARIO 12 • NEXT-GEN TELEMETRY

How does eBPF revolutionize observability? What telemetry can eBPF extract that traditional userspace agents cannot?

⚡ 30-Second Elevator Pitch

“Traditional observability requires intrusive code modification (SDKs, bytecode injection, or heavy Envoy sidecars). Extended Berkeley Packet Filter (eBPF) allows verified sandboxed programs to execute directly inside the Linux kernel on system call events (like `sys_enter_write`, `tcp_sendmsg`, `execve`). eBPF delivers zero-overhead continuous CPU profiling without sampling bias, traces TCP socket drops and network latency directly at the socket buffer level, and intercepts HTTP/gRPC requests transparently across all containers on a node with zero application code changes.”

Companion Technical Guides & Hands-On Tools

Cross-reference these production scenarios with our architectural playbooks and interactive engineering utilities.

Architectural Guide

OpenTelemetry vs Prometheus

Comparative breakdown of collector pipelines, metrics protocols, and storage engines.

Hands-On Guide

OpenTelemetry Distributed Tracing

End-to-end trace propagation, context injection, and Jaeger backend visualization.

Engineering Playbook

Grafana Dashboards & Alerting Guide

Production-grade dashboards, SLO alerting rules, and incident notification trees.

Interactive Utility

Cron Schedule Expression Generator

Design, validate, and verify recurring synthetic monitoring and scrape intervals.