Skip to content

Add native histogram support to all remaining production histograms#7636

Open
CharlieTLe wants to merge 3 commits into
cortexproject:masterfrom
CharlieTLe:worktree-parallel-fluttering-spark
Open

Add native histogram support to all remaining production histograms#7636
CharlieTLe wants to merge 3 commits into
cortexproject:masterfrom
CharlieTLe:worktree-parallel-fluttering-spark

Conversation

@CharlieTLe

Copy link
Copy Markdown
Member

What this PR does:

Convert ~45 remaining classic-only histograms to dual-format (classic +
native) by adding NativeHistogramBucketFactor, NativeHistogramMaxBucketNumber,
and NativeHistogramMinResetDuration fields. This follows the same pattern
already established for ~11 histograms in the codebase.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags

Convert ~45 remaining classic-only histograms to dual-format (classic +
native) by adding NativeHistogramBucketFactor, NativeHistogramMaxBucketNumber,
and NativeHistogramMinResetDuration fields. This follows the same pattern
already established for ~11 histograms in the codebase.

Signed-off-by: Charlie Le <charlie_le@apple.com>
Signed-off-by: Charlie Le <charlie_le@apple.com>
Signed-off-by: Charlie Le <charlie_le@apple.com>
@dosubot dosubot Bot added type/feature type/observability To help know what is going on inside Cortex labels Jun 22, 2026
Comment thread CHANGELOG.md
* [ENHANCEMENT] Distributor: Add `WrappedHistogram` with configurable size limit (`-validation.max-native-histogram-size-bytes`) to cap native histogram protobuf size before unmarshalling. #7570
* [ENHANCEMENT] Ingester: Add lazy regex evaluation on head postings cache miss. Defers expensive regex matchers on high-cardinality labels to per-series filtering when a selective equality matcher already narrows the result set. Configured via `-blocks-storage.expanded_postings_cache.head.lazy-matcher-max-cardinality` (disabled by default). #7553
* [ENHANCEMENT] Ring: Add ring metric to count number of duplicate tokens. #7626
* [ENHANCEMENT] Metrics: Add native histogram support to all remaining production histograms, enabling dual-format (classic + native) exposition across all Cortex components.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, can you add a PR number?

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size/XL type/feature type/observability To help know what is going on inside Cortex

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants