Reliability, Security & ObservabilityIntermediate14 min read1 questions

Observability: Logs, Metrics and Distributed Tracing

You cannot operate what you cannot see. What each signal is for, why high-cardinality metrics will bankrupt you, and how to alert on things users actually notice.

Covers: The three pillars, structured logging, RED and USE methods, cardinality, distributed tracing, alerting on symptoms

Monitoring tells you that something is wrong. Observability lets you work out why without shipping new code. In an interview, mentioning observability unprompted signals that you have operated systems rather than only built them.

Filter
0/1 mastered
IntermediateobservabilitymonitoringtracingAsked at Datadog, Google

30-second answer

Metrics are pre-aggregated numeric time series - cheap to store and query, ideal for alerting, but they cannot explain an individual request. Logs are discrete structured events with full context - ideal for investigation, expensive at scale. Traces stitch one request's spans across every service, showing where the latency and the failure actually occurred. Instrument metrics first because they drive alerting: for every service, the RED metrics - request rate, error rate and duration percentiles - get you most of the way.

Showing 1 of 1 questions for observability-logging-metrics-tracing.

Check your understanding

3 questions · no sign-up, nothing stored

0/3 answered
Question 1

1.Which label should never be added to a Prometheus-style metric?

Question 2

2.Which is a good alert?

Question 3

3.Why is tail sampling usually better than head sampling for traces?