prometheus/tsdb/chunkenc
Dieter Plaetinck 58917d1b76
sparsehistogram: integer types and timestamp separation (#9014)
* integer types and timestamp separation

1) unify types to int64. as suggested by beorn. we want to support
   counters going down (resets) even if we plan to create new chunks for
   now, in that case
2) histogram type doesn't know its own timestamp. include it separately
   in appending and iteration

Signed-off-by: Dieter Plaetinck <dieter@grafana.com>

* correction: count and zeroCount to remain unsigned

to make api more resilient and that's what we use in protobuf anyway

Signed-off-by: Dieter Plaetinck <dieter@grafana.com>

* temp hack. Ganesh will fix

Signed-off-by: Dieter Plaetinck <dieter@grafana.com>
2021-06-29 19:27:59 +05:30
..
bstream.go Cleanup bstream_test.go based on post-merge feedback received on #7390 (#7413) 2020-06-18 14:49:39 +05:30
bstream_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
chunk.go sparsehistogram: integer types and timestamp separation (#9014) 2021-06-29 19:27:59 +05:30
chunk_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
histo.go sparsehistogram: integer types and timestamp separation (#9014) 2021-06-29 19:27:59 +05:30
histo_test.go sparsehistogram: integer types and timestamp separation (#9014) 2021-06-29 19:27:59 +05:30
xor.go sparsehistogram: integer types and timestamp separation (#9014) 2021-06-29 19:27:59 +05:30