-
Notifications
You must be signed in to change notification settings - Fork 802
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
Add support for native histograms in querier protobuf codec #6368
base: master
Are you sure you want to change the base?
Add support for native histograms in querier protobuf codec #6368
Conversation
Signed-off-by: Ahmed Hassan <[email protected]>
integration/native_histogram_test.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The integration test is the same but runs twice now for each of the two querier codec flags
pkg/querier/codec/protobuf_codec.go
Outdated
Sample: &cortexpb.Sample{ | ||
vectorSamples[i].Labels = labels | ||
|
||
if data.Result.(promql.Vector)[i].H != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the json_codec
implementation we cannot have both a histogram and float at the same time for a vector sample
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Just some small nits
Signed-off-by: Ahmed Hassan <[email protected]>
Signed-off-by: Ahmed Hassan <[email protected]>
What this PR does:
The current implementation of querier protobuf codec does not serialize prometheus native histograms. This PR allows querier protobuf codec to handle responses with native histograms.
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]