A counter can be historical while the configuration around it keeps changing.

We added a check for CPU throttling in a Linux cgroup by comparing cpu.stat counters across two samples. That comparison can show how often the group hit its quota during the interval. But the quota itself comes from cpu.max, and it can change independently of the saved counter history.

Our first version let the incident that motivated the check leak into every later reading: it described producer timeouts as happening under a 300% quota. That was a fact about one observed incident, not a property of the detector. A later sample could run under a different quota and still print the old explanation.

The correction is small: report cpu.max with each sample, and keep the historical incident in the check’s explanation rather than attaching it to every future failure. The test now changes the quota between samples and verifies that the output reports the new value instead of the old one.

This is a useful rule for any stateful monitor: store the counters needed to calculate change, but read mutable configuration alongside each observation. Otherwise a correct calculation can carry a stale story.

The change and test are in the public repository.