prometheus/storage
beorn7 87351f2318 prompb: Modify layout of histograms
Note: This is deliberately an incompatible change. Since we have never
used histograms in remote read/write yet, there is no point in keeping
compatibility. This _is_, however, compatible to the state in the main
branch.

This commit flattens the bucket message into top-level fields. This
has the disadvantage of now having two triples of fields prefixed with
`negative_...` or `positive_...`. However, with this structure, we
save one tag on the wire. And, perhaps more importantly, we mirror the
structure of the `histogram.Histogram` Go type.

This commit also adjusts `repeated` fields to use names in the plural
form, as it is also the case for the fields that already existed.

This also adds a doc comment to `HistogramProtoToHistogram` and
changes its return type to a pointer (which is more convenient and
probably more efficient).

Signed-off-by: beorn7 <beorn@grafana.com>
2022-07-14 17:47:17 +02:00
..
remote prompb: Modify layout of histograms 2022-07-14 17:47:17 +02:00
buffer.go Merge branch 'main' into sparsehistogram 2021-12-15 13:49:33 +01:00
buffer_test.go Merge branch 'main' into sparsehistogram 2021-12-15 13:49:33 +01:00
fanout.go Merge branch 'main' into sparsehistogram 2021-11-17 19:57:31 +01:00
fanout_test.go tsdb: Rework iterators (#9877) 2021-11-29 13:24:23 +05:30
generic.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
interface.go Merge branch 'main' into sparsehistogram 2022-04-05 18:31:19 +02:00
lazy.go tsdb: Added ChunkQueryable implementations to db; unified MergeSeriesSets and vertical to single struct. (#7069) 2020-07-31 16:03:02 +01:00
memoized_iterator.go Merge branch 'main' into sparsehistogram 2021-12-15 13:49:33 +01:00
memoized_iterator_test.go Merge branch 'main' into sparsehistogram 2021-12-15 13:49:33 +01:00
merge.go Merge branch 'main' into sparsehistogram 2022-07-12 19:07:13 +02:00
merge_test.go Merge branch 'main' into sparsehistogram 2022-07-12 19:07:13 +02:00
noop.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
secondary.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
series.go storage: iterator fixes after merge 2021-12-18 14:12:01 +01:00
series_test.go storage: iterator fixes after merge 2021-12-18 14:12:01 +01:00