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.
More on Observability Fundamentals & Signals
What is the difference between monitoring and observability?BeginnerWhat are the "three pillars" of observability, and what is the fourth signal people now add?BeginnerWhen would you reach for metrics, logs, traces or profiles during an incident?BeginnerWhat are the four Prometheus metric types?BeginnerWhy should you never use a gauge to count requests?BeginnerHistogram vs summary: what is the real difference, and which do you choose?Intermediate