Skip to content

Add native histogram support#304

Open
howardjohn wants to merge 1 commit into
prometheus:masterfrom
howardjohn:histogram/native2
Open

Add native histogram support#304
howardjohn wants to merge 1 commit into
prometheus:masterfrom
howardjohn:histogram/native2

Conversation

@howardjohn
Copy link
Copy Markdown
Contributor

This PR adds support for native histograms using the new prometheus protobuf support recently merged.

The implementation is basically 1:1 lifted from the Golang implementation as much as possible, including tests.

Users can make any of the 3: classic only, native only, or classic + native histogram.

Add native-only histograms and histograms that expose both classic and native buckets. Encode native sparse bucket spans and deltas through the Prometheus protobuf encoder while keeping text and OpenMetrics protobuf behavior on the classic representation when available.

Signed-off-by: John Howard <john.howard@solo.io>
@howardjohn howardjohn force-pushed the histogram/native2 branch from dc631bf to d4882eb Compare May 28, 2026 20:55
@f41gh7
Copy link
Copy Markdown

f41gh7 commented May 29, 2026

Related issue #150

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants