8000 [BUGFIX] Protobuf scraping: reset exemplar position by bboreham · Pull Request #14810 · prometheus/prometheus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[BUGFIX] Protobuf scraping: reset exemplar position #14810

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 3 commits into from
Sep 3, 2024

Conversation

bboreham
Copy link
Member
@bboreham bboreham commented Sep 2, 2024

exemplarPos needs to be reset to zero when we move on to the next histogram.
Extend tests to have a case with two histograms.

Also fix commented test case numbers which were not monotonic.

If an error is thrown by the test, these numbers help you see which item is wrong.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This test fails.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
@bboreham bboreham requested a review from beorn7 September 2, 2024 17:36
@krajorama krajorama self-requested a review September 3, 2024 06:44
Copy link
Member
@krajorama krajorama left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member
@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member
@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

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

Thank you very much.

As we know, the "line based" structure of the parsing code is a bad match for the protobuf parsing. It keeps haunting us, and we have to fix it eventually. (Also note the irony of the protobuf parsing code being in a directory called textparse…)

@beorn7 beorn7 merged commit 4ffb74d into prometheus:main Sep 3, 2024
26 checks passed
@bboreham bboreham deleted the fix-proto-parse-exemplar branch September 3, 2024 13:17
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.

4 participants
0