
| Category | Value (responses) |
|---|---|
| 100 ms | 12 |
| 250 ms | 31 |
| 500 ms | 43 |
| 1 s | 48 |
| 2 s | 50 |
Illustrative calculation (not sourced observations). Illustrative cumulative counts for 50 responses. Each bucket count includes every preceding bucket; do not sum across cumulative buckets.
A reader opens an article and finds a blank patch where the lead photograph should have been. At the same moment a status panel says the publishing site is fast. Both observations can be true. The panel might report the typical time for an origin server to make HTML, while the reader is waiting for a large image on a mobile connection. Or the panel might hide a handful of slow responses in a daily average. Before adding detail to a dashboard, first decide whether the time being measured could tell you anything about the complaint.
This guide is about storing and reading distributions of durations at a named observation point, not about tracing the work inside an individual interaction. The examples use editorial HTTP responses because they are easy to describe: one completed response is one event; its elapsed time is measured at a defined layer. The same statistical discipline can be used elsewhere when the units and denominators are defined. A browser rendering metric is not added to the origin response metric, and a timeout that never completed deserves its own accounting.
For a small team, the right answer may be a handful of well-chosen histogram boundaries and one panel with counts, not a tall wall of percentile lines. Those boundaries can answer a specific question without demanding that you retain every duration forever. They cannot recover the exact events you chose not to keep. What you can decide later depends on what you decided to count today.
Choose the clock, event and denominator
Pick an observation point such as the process serving article HTML. In a written metric definition, name the point at which the clock starts and stops, the unit, and the eligible events. A server measurement might be recorded when its response handling finishes. A gateway metric might start as a request enters that gateway and finish on completion there. A browser measure might track when content appears in a visitor’s viewport. These are different clocks. A statement about elapsed processing time should not quietly expand into a statement about what all readers experienced.
For an editorial site, it matters whether the event is any request or only a particular kind. One reader opening an article can trigger HTML, a generated hero, a stylesheet, subsequent lazy image loads, and an analytics call. If you pool all of those durations, a change in the number of small images per article could affect the overall distribution even if the HTML is unchanged. Alternatively, requests for tiny assets could dominate the pool and conceal a slowdown in HTML. Use a bounded category such as article HTML; document whether listing pages, previews, bots, or synthetic probes are included. Synthetic checks are valuable but their schedules should not silently stand in for reader traffic.
Define eligibility and failure handling together. Suppose the team promises successful article responses at its public gateway within a chosen time. Successes that finish within the threshold are the numerator. The denominator might include all eligible attempts, including timeouts, if that is the commitment. A histogram recorded only after successful responses cannot supply that denominator on its own. Use a separately instrumented attempt or terminal-outcome count at the same boundary, and verify that it is coherent with the success counts. Waiting until after the panel disappoints to write the denominator will make comparisons much harder.
Be explicit about duplicates. A retry is a new attempt if you are measuring requests at a gateway. If a user action ultimately succeeds only after a retry, it may be more informative to measure elapsed time for the action at a different layer. Counting each retry as a distinct happy reader would not be valid. You can monitor both, provided the attempt panel and action panel do not claim to count the same thing. Label an internal panel "origin article responses" rather than "reader speed" if that is what the numbers really describe.
Name a time window and what ends an event. A request that starts before midnight and completes shortly afterward might be assigned according to its completion timestamp; a different monitoring method might use the time at which the sample was collected. The effect usually matters most at narrow windows, around outages, or in tiny cohorts. When comparing before and after a release, use the same definition and be mindful of requests that span the boundary. A daily total is not necessarily comparable with a collection interval that omits the deployment gap.
Start with three ways to store durations
Raw samples let you sort the observations again for a new percentile, inspect an outlier, or recompute the share under a newly chosen threshold. This strength depends on having captured the relevant events, retaining them long enough, and keeping their clock and unit consistent. Raw samples can also be hard to retain responsibly. Timing logs sometimes carry identifiers, full paths, query parameters, or other information unnecessary for measuring performance. If a small team keeps a bounded short-lived sample for diagnosis, it can restrict the fields and retention windows rather than collecting everything for convenience.
A histogram groups observations by duration. You retain counts and boundaries rather than the exact durations that produced those counts. At a boundary already represented in the data, the count of matching observations can be read directly. A threshold inside a bucket is a different matter: the data cannot tell exactly where within the bucket the requests fell. Compatible counts from several workers can be combined to recover the distribution at those same boundaries. Combining distributions before calculating a percentile makes the result refer to the full observed cohort.
A precomputed quantile answers a deliberately narrower question: for example, what a particular worker’s system estimates is its 95th-percentile request duration over a configured window. In Prometheus a summary can expose such quantile estimates along with the overall sum and observation count. A per-instance quantile can be useful to an operator who is responsible only for that instance. Those quantile values do not, however, contain enough information to reconstruct quantiles for a new window or a pool of workers. The Prometheus histogram and summary guide explains the tradeoffs among classic histograms, native histograms and summary quantiles, including uncertainty from bucket resolution versus uncertainty in quantile rank.
Think of the storage choice as a question you have to pay to answer later. If editors only need to know whether 95 percent of article requests met a threshold week by week, a compatible bucket at that threshold and the total count are powerful. If the system loses the connection between a particular article and its visual asset, the histogram alone does not tell you why. A small private sample of properly scoped diagnostic records can complement the histogram, rather than competing with it. If a tool exposes both a distribution and quantiles, confirm which field a dashboard is actually using.
Read the chart from left to right without adding the bars
The illustrative chart above describes 50 fictional completed responses. Its boundaries are 100 milliseconds, 250 milliseconds, 500 milliseconds, one second, and two seconds. The reported cumulative counts are 12, 31, 43, 48, and 50. Here the intended convention is at or below each threshold: a response measured at exactly 250 milliseconds is included at that boundary and all later ones. The chart title uses "below" informally. A real alert should define the comparison explicitly and check that the collector implements the same rule. Prometheus classic histogram boundary labels use the less-than-or-equal convention.
The first bar says 12 responses were at or below 100 milliseconds. The second includes those 12, plus 19 more above 100 and at or below 250. The next includes all 31 and another 12 above 250 and at or below 500. The increase from 43 to 48 represents five responses above 500 milliseconds and at or below one second. The increase from 48 to 50 represents two responses above one and at or below two seconds. Because the example explicitly gives 50 total responses, none is above two seconds. In operational data, the finite final bucket can be lower than the total. You need the total count or an inclusive overflow bucket to tell.
Adding the five heights produces 184, which is not a count of requests or an especially useful statistic. A single very fast response contributes to all five bars. To obtain non-overlapping counts, take successive differences and include an overflow category if necessary. In this example the disjoint counts are 12, 19, 12, 5, 2, and zero above two seconds. They sum to 50. A second bar chart with those differences would tell a different visual story. It would show how many events fell inside each range, not the share already accounted for at each successive boundary.
The categorical bar spacing is just a breathing room for the labels; 150 milliseconds separate the first two thresholds and a full second separates the last two. Don't infer a rate or a literal slope from the vertical differences and the equal visual gaps. If you choose to draw a frequency density chart across unequal intervals, the width of each interval matters: use count per unit of duration if the aim is for the area of a bar to represent count. For this editing decision, the cumulative count and a simple table are less likely to be misread. The example is an invented calculation; the Prometheus link explains the method, not the origin of those 50 durations.
A useful way to check the panel is to ask another person to answer a precise question from it. How many completed responses took more than 500 milliseconds? The answer is seven, found by subtracting 43 from 50. How many took more than one second? Two. What fraction took at most 250 milliseconds? Thirty-one out of 50, or 62 percent. If somebody calculates those from the sums instead, adjust the labels, legend or note before attaching alert decisions to the panel. Even an experienced reviewer may read "bucket" as a non-overlapping interval unless you tell them which convention applies.
Use boundary counts for a threshold and rank bounds for a quantile
Say the site has a hypothetical service-level objective, or SLO: at least 95 percent of eligible completed responses in the agreed window should take at most 500 milliseconds. With an exact 500-millisecond bucket, 43 out of 50 qualify, or 86 percent. The window does not meet the example objective. Thirty-one responses met 250 milliseconds, so a separate objective anchored there would have a different outcome. Meanwhile, 48 of 50 met one second, which is 96 percent. None of these calculations requires assigning an exact time to any individual response or estimating a percentile within a bucket.
An SLO is not the same thing as the measured indicator. "At least 95 percent" is the proposed objective. The measured indicator is the eligible good-event count divided by all eligible events, under a written definition. There is no universal 500-millisecond SLO for publishing. A longer or shorter threshold can be appropriate depending on which layer you control and what decisions the result should inform. If the team changes the threshold, record its effective date and whether archived buckets can answer the new question exactly. Do not retroactively judge an old deployment using a newly chosen criterion without saying that is what you have done.
A quantile asks a related question in the other direction: what time is associated with a chosen rank in the distribution? To reason without assuming within-bucket times, choose a simple illustration using the nearest-rank definition on the exact observations. The 75th percentile is the 38th ordered duration for 50 events, since 37.5 rounds up to rank 38. There are 31 times at or below 250 milliseconds and 43 at or below 500 milliseconds. The 38th duration therefore lies above 250 and at or below 500. The chart cannot tell if it is around 260 or around 480. Similarly, the 48th ordered duration lies above 500 milliseconds and at or below one second.
A dashboard function can estimate a number inside a bucket using an interpolation rule. Prometheus's query function documentation explains how the methods differ with histogram representation and where estimates can become loose. A narrow estimate displayed with three decimals does not mean the instrument recovered the lost details. Keep the interval or a sensible display precision in your reading of the panel. If a decision depends on a cutoff inside a wide bucket, plan a change in what you collect rather than debating the last digit of an estimate.
You can construct a simple counterexample to see why that information is lost. Put the 12 events in the 250-to-500 range just over 250 in one imagined distribution. Put the same 12 just under 500 in another. Give both distributions the same 38 other events. Their cumulative charts at the specified boundaries are identical, while the nearest-rank 75th percentiles are nearly a quarter second apart. The measured fraction at 500 milliseconds remains the same. This is why a target at a known boundary can be checked reliably even when a percentile estimate describing the surrounding durations is coarse.
Aggregate counts, not the displayed percentile
Suppose two replicas serve different volumes. Replica A records 90 observations all at 100 milliseconds. Replica B records ten, all at 900 milliseconds. Their nearest-rank 75th percentiles are 100 and 900 milliseconds. Averaging those two numbers produces 500 milliseconds. Weighting them by the number of observations gives 180 milliseconds. The actual 75th percentile of the pooled durations is 100 milliseconds: the first 90 times in sorted order already have that value. Neither average was the wanted percentile. In a discussion about a release, substituting either number could make the service appear to be changing when only the volume assignment changed.
Now keep the count at the boundary of 250 milliseconds instead. Replica A contributes 90 eligible events at or below the boundary; B contributes zero. Add the two numerators, add the two denominators and divide: 90 of 100, or 90 percent. These quantities are actual event totals measured under one definition, not ranks to average. The same idea works for a pooled mean if the original durations were summed: add the sums, add the counts, then divide. A graph can expose both the pooled figure and per-replica figures because each serves a purpose. The pooled one reflects the counted service events; the split view may help locate the underperforming replica.
For classic histograms, only combine buckets that mean the same thing. Counts at 250 milliseconds on one replica are not interchangeable with counts at 300 on another. During a rolling change, prepare for a temporary mixed boundary population. A common boundary is useful only if each relevant contributor exposes it and the denominator covers the same population as the numerator. An incomplete numerator from half the workers divided by all requests looks like a real slowdown unless you explicitly check coverage. For an exact ratio, retaining the old boundary for a transition period can be less disruptive than removing it as soon as a new target is announced.
Windowing precedes addition when dealing with per-process cumulative counters. A successful collection after a restart might carry a smaller lifetime count than the previous collection because the process started over. Comparing arbitrary snapshots without accounting for resets makes a decrease look like negative requests. In Prometheus, compute rates over the chosen window for individual classic bucket series before summing them across instances so resets can be handled for each series. If you are checking exact event totals in a controlled fixture, count the known events; a rate-derived increase over scrapes can be extrapolated and needn't be an integer. Missing collection is not an observation of zero.
A compatibility review should check the numerator and denominator selectors, exporter versions, unit and collection method. Two teams may both call their measure "request duration" while one stops its timer when the app begins sending and the other when the response completes at the gateway. Mixing those series is logically wrong even if the label names and bucket numbers happen to match. Keeping the descriptor "gateway complete-response duration" beside its query is an inexpensive defense against this kind of accidental pooling. If the observation method changes materially, mark a boundary in time and start a new comparison where necessary.
Put buckets where they can settle a disagreement
Begin by writing the question the person on duty is likely to ask. If the current concern is slow HTML during an import, do you need the share beyond 500 milliseconds, the volume of traffic over a second, or breadcrumbs to understand whether a particular group of pages was affected? For a threshold objective, include that exact boundary. Choose some surrounding boundaries if they would distinguish an occasional overrun from a long tail, and make sure you still know how many events exceeded the largest finite boundary. There is no need to use the same bucket plan for route timing, build duration and image transformation.
Consider what happens if the only boundaries near your objective are 250 milliseconds and one second. If most responses pile into that large interval, a percentage estimated at 500 milliseconds may be persuasive on a screen but weak as a decision tool. When the objective is itself a known division point, you can count events at or below it without an interpolation assumption. The other scientific virtue is comparability: retaining a small, stable set of boundaries can make release-to-release differences interpretable even when one team wants a new panel every month. Document why each retained boundary exists and remove unused ones deliberately, not during a busy deploy.
Groups on the dashboard also need a reason to exist. Keeping one metric series per slug might seem useful because an editor cares about individual articles. On a site with thousands of slugs, multiplying that choice by every boundary, region, status and worker can turn an inexpensive measurement into a large persistent burden. A bounded route category, a small status family, or an independently reviewed release window can answer more questions per series. Keep a temporary, governed log or a synthetic trace for individual-article diagnosis if appropriate. Do not put names, reader identifiers or query strings into long-lived metric labels merely to make drill-down easy.
Prometheus distinguishes classic histograms, which expose individual bucket series, from native histogram representations. Native histograms can be a useful fit when your collector, storage and query path handle them end to end; do not assume all links in the chain support the same representation merely because a client library can emit it. They still do not preserve every event. Estimates near a threshold depend in part on boundary alignment and resolution. For a small team already running a classic histogram, an extra well-chosen boundary and a written working definition may be more practical than a migration attempted solely to add a prettier heatmap.
Put the panel's maintenance burden into the design decision. If you cannot describe how the bins were chosen or how a teammate should react to a shift, the panel is a demonstration rather than an operational tool. A defensible design serves a modest set of explicit questions: did the eligible share meet the intended objective, do we have enough observations to judge, and is a failure accompanied by a measurable change in counts, errors, or route mix? If a longer-running team later needs to separate cache populations or editorial releases, it can add one well-defined segment and validate it before distributing a more complicated scorecard.
Tiny cohorts need counts and a calendar, not decimals
With ten eligible events, one request accounts for ten percentage points. If nine are inside a boundary, the fraction is 90 percent. If ten are inside, it is 100. Neither outcome allows a fine-grained claim about the process that generated the next week's requests. At higher sample sizes the steps become smaller, but the data can still be unrepresentative if coverage changes or the events are not independent. Several observations by the same reader opening a set of related articles can share a connection, device, cache state or location. Increasing the count does not automatically eliminate that dependence.
Consider a site that has four eligible observations today and all four appear fast. Tomorrow it has 36 observations, of which 33 meet the objective. Averaging daily percentages gives about 95.8 percent. Pooling the underlying event counts gives 37 out of 40, or 92.5 percent. The reported question matters. The first number weights days equally; the second weights eligible events equally. Small incidents can disappear or grow depending on which average you show. Put the definition near the chart, since a reader seldom means "days are the same size" when asking for the share of visitors affected.
Set an interpretation rule before the first alarm. A team can choose to display a longer window, publish raw counts beside percentages, and mark the short window as low-volume when it cannot support a stable view. A missing denominator should be shown as missing, not empty success. Even a real zero-traffic observation does not have a defined success fraction. A measurement outage is yet a different status: it means you do not have the observation that would let you conclude the traffic was zero. Use separate statuses, especially if the dashboard goes to an editor who does not watch the collector.
Different signals can cover different scales. A controlled scheduled request can flag an obvious total failure at a quiet hour; the ordinary-traffic histogram summarizes observed performance at its collection point. The probe panel should not count as proof of a good mobile experience, but it can check an accessible public route outside peak traffic. Conversely, a healthy long window can coexist with an active brief outage. Preserve a chronology of releases, collection gaps and incidents separately so that a long-window ratio does not erase an operational event that was already known.
There are choices for a report on uncertainty beyond displaying the counts. A formal interval may make sense if you can defend the data-generating assumptions and say what its uncertainty represents. A small group comparing two deployments with different route mix, hours, or measurement eligibility is often better served by acknowledging those limitations than by calculating a precise-sounding probability. A matched controlled test can narrow some of the question, while the ordinary cohort tells you about actual observed traffic. Neither substitutes for the other. Separate the actual chart from the interpretation you would need a better study to support.
Keep field experience separate from service elapsed time
Google's Web Vitals guide describes a different interpretation problem: page experience assessed at the 75th percentile of page loads, segmented by mobile and desktop. Its good-performance recommendations include Largest Contentful Paint at 2.5 seconds or less, Interaction to Next Paint at 200 milliseconds or less, and Cumulative Layout Shift at 0.1 or less. CLS is not a duration. These are site-experience metrics with specific definitions, not generic HTTP limits. Refer to the current guide if you are setting performance policy; the examples in this article do not replicate Google’s methodology and use made-up server observations.
A gateway can report that the origin-side HTML is quick while the main image becomes visible much later. Conversely, a served document that took somewhat longer at the gateway can still feel acceptable to some readers if their device and asset loads cooperate. Use your origin-side numbers to drive the changes that belong there, and measure the experience from the browser when that is the actual claim. If field coverage is too low or not available, say that directly rather than substituting a server percentile with the same ordinal number. A 75th percentile only describes a rank; it doesn't name the measurement population.
Don't merge metric families just because seconds can be converted to milliseconds. The workflows for article completion and page experience can both produce a fraction below a boundary, but their event definitions and clocks differ. If you show both on one page, repeat the cohort in each panel heading and reveal which evidence is from production and which is from a controlled test. Give test cases one job: if a synthetic browser check demonstrates a regression in the same route and environment, it can help investigate, but a single device script is not the underlying reader population.
A useful editorial explanation after a complaint might be: "At our gateway, 43 of 50 eligible completed responses met the 500-millisecond threshold in this fictional reporting window; we separately need browser measurements to find out why images might appear late." In a real update, also provide failure counts or state why they are excluded. That is a better summary than "only seven readers were impacted" when you do not have a measure of unique readers or of impact. The continued distinction between a completed response and a completed experience is a small piece of editorial discipline that most incident communication benefits from.
Compare a quiet release without mistaking a new audience for a faster system
Imagine a small publisher moving archival essays onto a new article template. Before the move, the distribution of origin HTML times is dominated by returning visitors to recent stories whose pages are already cached. After the move, a newsletter sends readers to older articles that have not been accessed recently. The team compares two hourly panels and sees a greater fraction beyond the chosen target. That is a valid observation about the two measured cohorts if the definitions and coverage match; it does not prove the new template made an equivalent request slower. The share of cache states, article classes and access locations may have changed. Make the initial report about the measurement you have, then schedule a controlled comparison for the narrower performance claim.
Start with a small matrix whose cells can each be recognized reliably. Compare one recent and one archival route under the same test conditions before adding more. Run a controlled check with a known cache condition, and keep measurements for different conditions in separate groups. Don't purge production caches simply to populate the table. If your real telemetry can classify observations into a small number of already supported states, compare those groups separately with the same bucket cutoffs and explicit counts. Be wary of assigning a cache status after the fact from a request duration alone: fast is not a verified cache hit, and slow is not a verified miss.
When cohort boundaries change at cutover, make the change visible on the time axis. A release marker helps explain which version might have served which requests; it does not itself split a rate window cleanly. If a window includes both versions, call it mixed rather than assigning it to whichever version was live at the end. A team may choose to exclude a partial transition from a comparison while showing it separately as part of the operational record. Explain the reason for excluding it so a reader can see that you did not trim the time series solely to get a favorable result. A held view is especially important when late arriving collections or restarted exporters would otherwise make that period look unrealistically clean.
Write the follow-up question before publishing the release summary. If background test requests changed, did the panel include them? If there were fewer observed responses, was traffic actually lower or did one worker stop reporting? If the dashboard shows only success timings, did a failure differentially remove some attempts from the later cohort? If a new table was sorted by percentile, did that change how low-volume routes were ranked? Once you have answers, a concise note such as "cold archive requests increased in this later sample; the pooled threshold share fell, but a same-route cache-controlled test has not yet run" can say more than a color-coded trendline. A good histogram supports honest handoffs even before the root cause is known.
The same logic applies to improvements. If the proportion inside 500 milliseconds rises from one release to the next and the sample contains mostly freshly warmed pages, call out the warmer sample. If the purpose is to see whether the site serves real traffic more effectively after a change, the observed mix is part of that practical outcome, but it is not a controlled experiment. Record both conclusions at the right scope. In many small publishing operations this written distinction is the difference between continuing to collect the right evidence and opening a long optimization project to fix the wrong thing.
Run a tiny acceptance exercise before trusting the panel
Start with a local or staging fixture. Define a few expected durations and feed them into the instrument, using distinct outcomes where applicable. For a classic inclusive bucket example, write case expectations for an observation of exactly 250 milliseconds, one slightly beneath, and one slightly above. Verify that the equal and lower durations are included at 250 and the higher duration enters later buckets. Confirm the total by counting the inputs, not by adding buckets. If the instrument stores seconds, the boundary should be 0.25, not 250. Controlled fixtures help catch a thousandfold mismatch before it enters a comparison with a release.
Give the team one error test and one missing data test. In the error test, send a simulated attempt that fails under the eligible route and confirm the panel reports its denominator inclusion or exclusion as intended. If all attempts are supposed to count, the timeout must not vanish simply because the success timing is written elsewhere. In the missing data test, disable the fixture collector for a short interval and verify that the panel reads unknown rather than showing an unbroken green line. Restore it and see whether turnover or restarted counters create a meaningless dip in graphs that compute windowed rates.
Test aggregation by partitioning the same known inputs unevenly across two worker fixtures. With an unchanged measurement definition, adding compatible counts should reproduce the single combined fixture. Compare dashboard results to the hand addition first at known boundaries before checking any interpolated percentiles. Introduce a worker with a deliberately different boundary set in staging and confirm your release check catches it. That test is worth doing once because a plot with plausible numbers often gives less warning than a crashed build. In production, attach an easy way to detect coverage if configuration drift could remove one worker’s counts at the target.
Finally, test the report a colleague actually receives. Does it contain the time window, numerator and denominator, unit, and threshold? If you use a percent, can they see how many events a one-point change represents? If the monitored stage stops when a response completes, does the label communicate that fact? As a last step, check whether people can act on the alert. A clear alert saying "12 of 60 eligible article HTML responses exceeded 500 ms at the gateway in the reviewed window" offers a starting point. A percentile flashing red without a stage or sample count invites guesswork.
This review does not require inventing a new instrumentation platform. Use the tool you already have if it can answer the scoped question reproducibly. Keep one short page that records the chosen boundary, collection method, denominator, and the first successful acceptance exercise. As the site grows, it will be easier to decide whether an expanded distribution or a different observation point is worth the cost. Good histogram design is not about predicting all future questions. It is about presenting today's answer with enough context that an editor, engineer or reader can tell precisely what it means and what remains unmeasured.
References
- Prometheus: Histograms and summaries, official guidance on observation distributions, aggregating compatible histograms, quantile tradeoffs and bucket decisions. This reference explains the method; the 50 responses in the article are fictional.
- Prometheus: Query functions, documentation for rate, histogram fractions and quantiles, including how estimates depend on boundaries and histogram representation.
- Google web.dev: Web Vitals, official definitions and guidance on assessing page experience at the 75th percentile across mobile and desktop.