DELAPARRA
Index
Color
NL
Category: Observability

histogram

Explained by Updated

What is histogram?

histogram: A metric that buckets observations (e.g. request durations) so you can compute percentiles and heatmaps server-side. A histogram metric sorts measurements into buckets, such as requests that took under 100 milliseconds, under 300, under a second, and so on. From those buckets, a monitoring system can calculate percentiles like p95 and p99.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about histogram

How is histogram used in practice?

Averages hide problems. If most requests take 50 milliseconds but one in twenty takes four seconds, the average still looks fine. The p95 shows the slow experience real users have.

What should you keep in mind with histogram?

Choose bucket boundaries around the values that matter, such as your target response time. Too few buckets make percentiles inaccurate; too many increase storage. In Prometheus, histogram_quantile(0.95, rate(http_duration_seconds_bucket[5m])) gives the 95th percentile. It is the right way to measure latency for dashboards and alerts.

What does an example of histogram look like?

http_duration_bucket{le="0.3"} 9821 http_duration_bucket{le="1.0"} 9990

At a glance

CategoryObservability
Explained by
Updated

More Observability terms

All terms starting with H

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.