sidecar, query, receiver: Native histogram support#6032
sidecar, query, receiver: Native histogram support#6032GiedriusS merged 8 commits intothanos-io:mainfrom
Conversation
831ee0c to
67a4190
Compare
5e05fb2 to
29fdb83
Compare
29fdb83 to
0d35f4a
Compare
57c9771 to
8edbf72
Compare
fpetkovski
left a comment
There was a problem hiding this comment.
Looks good, thanks. Just one comment from my side
| } | ||
|
|
||
| // TODO(rabenhorst): Needs to be implemented for native histogram support. | ||
| func (s *mockedSeriesIterator) AtHistogram() (int64, *histogram.Histogram) { |
There was a problem hiding this comment.
I see we still panic in this method but removed the comment. Do we still need to implement anything?
There was a problem hiding this comment.
I will restore the comment. Rn mockedSeriesIterator does not support histograms and if we need it it needs to be implemented.
|
I updated prometheus/common so that it includes prometheus/common#417, which is not tagged yet but helps to improve tests (see last commit). |
c938a32 to
ca26c93
Compare
fpetkovski
left a comment
There was a problem hiding this comment.
Thanks, this looks good now 👍
ca26c93 to
d61405a
Compare
e3347d6 to
dc81061
Compare
| lastUseA := it.useA | ||
| defer func() { | ||
| if it.useA != lastUseA { | ||
| if it.useA != lastUseA && isFloatVal { |
There was a problem hiding this comment.
adjustAtValue seems to already be protected against doing something with non-float values but this makes code clearer 👍
204b20d to
4109b40
Compare
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Added comment Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Cleanup native histogram tests Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Made native hist test ha and replace usage of at with att Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Fix deduplication with native histograms Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Enabled native histogram writing Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Committed missing files for write Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Added benchmark for histogram writing Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Fixed chunkSeriesIterator Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Enabled replication for native histogram write test Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Lint native histogram test imports Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Removed ToDo comments Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Cleanup Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
4b432ea to
6bc4626
Compare
* Added native histogram support for sidecar, query, receiver. Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Added comment Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Cleanup native histogram tests Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Made native hist test ha and replace usage of at with att Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Fix deduplication with native histograms Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Enabled native histogram writing Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Committed missing files for write Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Added benchmark for histogram writing Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Fixed chunkSeriesIterator Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Enabled replication for native histogram write test Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Lint native histogram test imports Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Removed ToDo comments Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Cleanup Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Renamed lastValue of dedup iter and added TODO Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Fixed typo Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Added hidden native histogram flag for receive tsdb Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * merge Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Comments and reverted change to qfe Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Go mod tidy Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Dedup iter nit Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
* Added native histogram support for sidecar, query, receiver. Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Added comment Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Cleanup native histogram tests Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Made native hist test ha and replace usage of at with att Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Fix deduplication with native histograms Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Enabled native histogram writing Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Committed missing files for write Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Added benchmark for histogram writing Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Fixed chunkSeriesIterator Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Enabled replication for native histogram write test Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Lint native histogram test imports Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Removed ToDo comments Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Cleanup Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Renamed lastValue of dedup iter and added TODO Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Fixed typo Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Added hidden native histogram flag for receive tsdb Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * merge Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Comments and reverted change to qfe Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Go mod tidy Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Dedup iter nit Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
* Added native histogram support for sidecar, query, receiver. Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Added comment Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Cleanup native histogram tests Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Made native hist test ha and replace usage of at with att Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Fix deduplication with native histograms Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Enabled native histogram writing Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Committed missing files for write Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Added benchmark for histogram writing Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Fixed chunkSeriesIterator Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Enabled replication for native histogram write test Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Lint native histogram test imports Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Removed ToDo comments Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Cleanup Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Renamed lastValue of dedup iter and added TODO Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Fixed typo Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Added hidden native histogram flag for receive tsdb Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * merge Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Comments and reverted change to qfe Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Go mod tidy Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> * Dedup iter nit Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com> Signed-off-by: Sebastian Rabenhorst <sebastian.rabenhorst@shopify.com>
Add native histogram support for sidecar, query, receiver. It does not include necessary changes for query UI and query frontend. The plan is to do this separate PRs. Relates to #5907.
Changes
Verification
QueryInstantof promclient as workaround (until Add histogram vectors to model prometheus/common#417 is available)