-
Notifications
You must be signed in to change notification settings - Fork 529
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
Support histograms in pkg/frontend #4377
Conversation
9a7cdc6
to
45eb1d4
Compare
45eb1d4
to
07a90ba
Compare
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
07a90ba
to
a2d3002
Compare
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.
Two nits. Looks good overall, I want to run a little benchmarking on the generics though
Generics double the time for running the filter due to using interface mechanism to get to the GetTimestampVal() function. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Turns out this takes double the time due to the function getting the timestamp being invoked through interface semantics in Go. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
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.
LGTM
# Conflicts: # pkg/frontend/querymiddleware/results_cache_test.go
set = append(set, series.NewConcreteSeries(mimirpb.FromLabelAdaptersToLabels(stream.Labels), samples, nil)) | ||
// same logic as samples above | ||
histograms := make([]mimirpb.Histogram, 0) //, len(stream.Histograms)+10) | ||
/* // for now we will disable query sharding for tenants who enable native histograms, as the changes to support query sharding with native histograms is non-trivial |
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.
I suggest to not merge commented code.
What this PR does
Syncs that changes in
pkg/frontend
fromsparsehistogram
branch.Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]