Histogram vs summary: what is the real difference, and which do you choose?
IntermediateConceptObservability Fundamentals & Signals
Answer
| Histogram | Summary | |
|---|---|---|
| Quantile computed | Server side (histogram_quantile) |
Client side, in the app |
| Aggregatable across instances | Yes (sum the buckets) | No, you cannot average quantiles |
| Accuracy | Depends on bucket layout | Configurable error per quantile |
| Cost | One series per bucket | One series per quantile |
In production we choose histograms almost always, because we need p99 across 50 pods, and summaries cannot be aggregated. Summaries are only acceptable for a single-instance process where you need precise quantiles.
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?BeginnerWhat are native (sparse) histograms in Prometheus?Advanced