TECHNOLOGY

Histogram resets: retain start times before comparing serving windows

In this article
THE QUICK TAKE

A cumulative histogram belongs to its accumulation epoch; subtracting across a reset does not produce a valid interval distribution.

The diagnostic situation

A model rollout restarts a metrics producer during the comparison window. The dashboard subtracts the earlier cumulative histogram from the later one and interprets the result as post-rollout latency. Counts can decrease or incompatible windows can overlap. Clamping negative values hides the discontinuity without recovering the missing observations, making an apparently improved distribution unsupported.

Why the observation changes meaning

The OpenTelemetry data model associates sums and histograms with accumulation intervals and distinguishes delta from cumulative temporality. A changed start time can indicate a new accumulation epoch. Point timestamps alone are insufficient to prove continuity. Reset handling must preserve producer identity and temporality rather than treating every smaller bucket count as an ordinary fluctuation in workload.

Define the instrumentation contract

Define the metric producer lifetime and accumulation start alongside the query window. Record whether conversion from cumulative to delta occurs in the SDK, collector or backend. For a reset crossing, state which intervals are available and which are unknown. Preserve the original samples before any repair so a dashboard transformation cannot become the sole evidence of continuity.

A bounded verification procedure

Prepare a synthetic histogram sequence with a stable epoch, then a restart and a new epoch. Keep a separate expected inventory of observations. Run the normal query over windows before, across and after the restart. Include a collection gap as a different fixture. The analysis must distinguish a visible reset from missing samples instead of silently patching both with zeros.

Evidence required for acceptance

Acceptance requires sample start times, end times, producer identity, temporality and the resulting interval selection. Show included and excluded intervals explicitly. Reconcile count and sum with known fixture observations before interpreting a percentile. Compare rollout windows only over defensible coverage, and preserve the fact that a reset may prevent a complete before-and-after distribution for the originally chosen interval.

Failure cases and limits

A backend can apply documented reset-aware calculations, but that does not recreate unobserved work before the first usable sample. Concurrent producers with merged identity create another failure mode that reset logic cannot solve. This protocol validates interval continuity and honest coverage; it does not prove equal traffic mix, model quality or a causal performance effect from the rollout.

A cumulative histogram belongs to its accumulation epoch; subtracting across a reset does not produce a valid interval distribution. OpenTelemetry metrics data model; OpenTelemetry metrics SDK.

The proposed investigation of histogram start time epoch is not an executed deployment benchmark. Related reading: Fleet p95: aggregate histograms rather than precomputed percentiles; GPU resets and telemetry counter epochs.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles