Skip to content

Native histogram spec: Clarify counter reset handling for + and - #2707

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

Merged
merged 1 commit into from
Aug 19, 2025

Conversation

beorn7
Copy link
Member

@beorn7 beorn7 commented Aug 13, 2025

Also, clarify that the same implications are valid for the sum and avg aggregation.

Part of addressing prometheus/prometheus#16576 .

/cc @juliusmh

@beorn7 beorn7 requested a review from krajorama August 13, 2025 16:32
@beorn7
Copy link
Member Author

beorn7 commented Aug 15, 2025

@krajorama is on vacation by now. @NeerajGartia21 and @juliusmh, your review would be very welcome so that we can close prometheus/prometheus#16576 .

counter reset hint. Otherwise, the resulting counter reset hint is set to
`UnknownCounterReset`. The result of a subtraction is always marked as a gauge
histogram because it might result in negative histograms, see [notes
above](#unary-minus-and-negative-histograms). In any case, adding or

Choose a reason for hiding this comment

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

Suggested change
above](#unary-minus-and-negative-histograms). In any case, adding or
above](#unary-minus-and-negative-histograms). Adding or

I'm also wondering if we should keep this line, as there is no user-visible warning until reset merge algorithm is resolved.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have added a note, referring to the relevant section and issue.

Also, clarify that the same implications are valid for the `sum` and `avg`
aggregation.

Signed-off-by: beorn7 <[email protected]>
Copy link

@juliusmh juliusmh left a comment

Choose a reason for hiding this comment

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

Looking good!

@beorn7
Copy link
Member Author

beorn7 commented Aug 19, 2025

Thanks.

@beorn7 beorn7 merged commit c349e07 into main Aug 19, 2025
5 checks passed
@beorn7 beorn7 deleted the beorn7/histogram branch August 19, 2025 10:30
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.

3 participants