Budget Prometheus label values before adding high-cardinality dimensions

Every distinct label set creates another time series with real operating cost.

Resilient network core with engineered blue and gold data paths.
DSE visual intelligenceNetworks & infrastructureGuide · 2 min read
Executive summary

What you need to know

Every distinct label set creates another time series with real operating cost.

Potentially affected

Review labelset cardinality and instrumentation cost using Prometheus's general design guidance.

DSE recommendation

DSE recommends estimating the possible combinations before adding a label, including growth and values generated by retries or user input.

Every distinct label set creates another time series with real operating cost.

Source facts

Prometheus instrumentation guidance states that each label set adds a time series with memory, CPU, disk and network costs. Large numbers of metrics and label combinations can accumulate quickly. It recommends limiting cardinality and considering other analysis systems when the potential population becomes large.

Source: Prometheus documentation — Instrumentation.

Applicability

Review labelset cardinality and instrumentation cost using Prometheus’s general design guidance.

DSE recommendation

DSE recommends estimating the possible combinations before adding a label, including growth and values generated by retries or user input. Keep request identifiers, unrestricted paths, and other effectively unbounded data out of metric dimensions unless a reviewed design justifies them. Use logs or traces where per-event detail is the actual requirement. Assign an owner to the metric’s label contract and review changes during application releases. Preserve the operational question the metric answers so cost reduction does not remove essential diagnostic meaning.

Verification

In a representative test workload, inspect the resulting series count and distinct values for each proposed label. Compare the observed population with the estimate and exercise an unusual input path. Confirm instrumentation cannot create uncontrolled new values before enabling the dimension across the full production fleet. Retain the proposed value domains and resulting series count with the workload profile. Ask the instrumentation owner to demonstrate the agreed bound under unusual inputs before accepting the label contract across more instances.

Official reference

Prometheus documentation — Instrumentation. Reviewed October 20, 2026.

Primary reference

Review the official source

Prometheus documentation — Instrumentation · Verified October 20, 2026

Open official reference ↗
Plan the next step

Need help applying this guidance safely?

DSE can help confirm applicability, protect service continuity, and validate the result across physical security and IT systems.

Talk with DSE