﻿# Detect discarded recording-rule output at the group series limit

A recording-rule series-limit breach discards the whole output and records an evaluation error; old samples must not masquerade as fresh capacity.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-dc-prometheus-rule-series-limit/
Language: en

A capacity recording rule stops updating after a new model label increases its output series count. The report still displays an older value and looks stable. Prometheus group limits can discard the rule's entire output when exceeded. Diagnose evaluation state and sample freshness before reading a flat capacity line as unchanged service conditions.

## Identify the affected rule group

Resolve the recording rule, its group and the effective limit. The configured group limit constrains series produced by an individual recording rule, not simply the number of rule statements in the file. Retain the expression and label changes that preceded the failure. Adding a new dimension can increase output cardinality even when the input traffic and hardware inventory are unchanged.

## Understand all-output discard

When the documented limit is exceeded, the rule's produced series are discarded and an evaluation error is recorded. This is not a successful truncation to a representative subset. A dashboard cannot safely interpret surviving historical samples as evidence that the current evaluation produced the same capacity. The rule's result contract failed rather than merely becoming less detailed.

## Inspect evaluation evidence

Use the supported rules API to inspect the relevant rule and group health and error information. Keep the last evaluation context alongside the query result. Distinguish an evaluation error from a successful expression returning no series. Those conditions require different explanations, even though a downstream panel can present both as missing new points or a deceptively unchanged line.

## Preserve sample age

The documented limit failure does not write stale markers for the discarded output. Historical samples can therefore remain relevant to query selection until the applicable lookback behavior excludes them. Retain timestamps and query context instead of filling missing updates with a new successful observation. A dashboard's presentation choice must not silently manufacture fresh measurements from the last stored value.

## Exercise the cardinality boundary

Use offline rule fixtures that produce outputs below, at and above the intended boundary, with expected series and evaluation behavior. Keep model and capacity labels needed for diagnosis rather than removing them blindly to quiet an error. This validates the reporting mechanism; it does not measure new hardware capacity or authorize a live configuration change. Report the stale or failed derivation explicitly until current valid output is established.

## Primary references

[Prometheus Recording Rule Groups and Limits](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/).

[Prometheus HTTP API Rule Inspection](https://prometheus.io/docs/prometheus/latest/querying/api/).

[Prometheus Rule Unit Testing](https://prometheus.io/docs/prometheus/latest/configuration/unit_testing_rules/).

Related reading: [A metric disappeared from the graph: staleness, up and zero values](/journal/prometheus-scrape-staleness/); [GPU monitoring without excess charts: five observation levels](/journal/gpu-monitoring-scorecard/).
