Skip to content

fix(nhcb): do not return nhcb from parse if exponential is present#15209

Merged
krajorama merged 1 commit intomainfrom
nhcb-scrape-impl
Oct 24, 2024
Merged

fix(nhcb): do not return nhcb from parse if exponential is present#15209
krajorama merged 1 commit intomainfrom
nhcb-scrape-impl

Conversation

@krajorama
Copy link
Member

@krajorama krajorama commented Oct 24, 2024

From: #14978 (comment)
Also encode the requirement table set in #13532

This relies on protobuf parser exposing native histograms before classic series and that text format exposers follow the requirement about ordering: proposals/2024-01-29_native_histograms_text_format.md.

From: #14978 (comment)
Also encode the requirement table set in #13532

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Copy link
Member

@jesusvazquez jesusvazquez left a comment

Choose a reason for hiding this comment

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

LGTM! Very clear code to me

{Labels: labels.FromStrings("id", "something-test"), Value: 0.5},
{Labels: labels.FromStrings("id", "something-test"), Value: 8.0},
},
// TODO(krajorama): ct: int64p(1520430001000),
Copy link
Member Author

Choose a reason for hiding this comment

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

note to reviewers: input doesn't have created timestamp, copy paste error to have this comment.

{Labels: labels.FromStrings("id", "something-test"), Value: 0.0, HasTs: true, Ts: 123321},
{Labels: labels.FromStrings("id", "something-test"), Value: 2e100, HasTs: true, Ts: 123000},
},
// TODO(krajorama): ct: int64p(1520430002000),
Copy link
Member Author

Choose a reason for hiding this comment

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

note to reviewers: input doesn't have created timestamp, copy paste error to have this comment.

@krajorama krajorama merged commit 469573b into main Oct 24, 2024
@krajorama krajorama deleted the nhcb-scrape-impl branch October 24, 2024 16:14
julienduchesne pushed a commit to julienduchesne/prometheus that referenced this pull request Dec 13, 2024
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