Skip to content

Add native histogram custom values #6687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Apr 5, 2025

Keeping this draft for now and will mark as ready after I finish all the tests.

What this PR does:

Add Native Histogram Custom Values (NHCB) support to Cortex.

The main change is just adding custom_values field to cortex proto. Then Cortex should be able to work out of box for NHCB as almost all NHCB handling logic is done in Prometheus.

Note that Prometheus RW v1 doesn't support NHCB yet. And there is a PR to support it. prometheus/prometheus#16354

I am able to ingest NHCB samples via RWv1 with this PR and the Prometheus PR above.

image

Which issue(s) this PR fixes:
Fixes #6094

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@dosubot dosubot bot added the type/feature label Apr 5, 2025
@yeya24 yeya24 marked this pull request as draft April 5, 2025 19:41
@yeya24
Copy link
Contributor Author

yeya24 commented Apr 8, 2025

Based on the discussion with Prometheus maintainers, Prometheus doesn't want to support sending custom values via RW1.1 and it is RW2.0 only.

We can wait for RW2.0 PR in Cortex to be merged first and support there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Native Histogram Custom Buckets
1 participant