Interview Prep/Monitoring & Observability/Observability Fundamentals & Signals

What is the difference between an event and a metric?

IntermediateConceptObservability Fundamentals & Signals
Answer

An event is a single occurrence with full context (one request: path, user, status, duration, build). A metric is a pre-aggregated number over many events (requests per second by status).

Metrics are aggregated at write time, so they are cheap but you cannot ask new questions of old data. Events keep everything and aggregate at read time, so they are flexible but expensive. Logs and spans are events; Prometheus samples are metrics.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Observability Fundamentals & Signals