prometheus/prompb
Giedrius Statkevičius d1d2566055
remote/read_handler: pool input to Marshal() (#11357)
* remote/read_handler: pool input to Marshal()

Use a sync.Pool to reuse byte slices between calls to Marshal() in the
remote read handler.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* remote: add microbenchmark for remote read handler

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
2022-11-15 16:29:16 +01:00
..
io/prometheus/client prompb: Add note about experimental state of native histograms 2022-10-11 14:08:40 +02:00
buf.lock add support for buf (#10112) 2022-02-16 18:30:10 +01:00
buf.yaml prompb: add lint ignores for metrics.proto 2022-06-14 13:47:09 +02:00
custom.go remote/read_handler: pool input to Marshal() (#11357) 2022-11-15 16:29:16 +01:00
README.md update the protoc version to 3.12.3 in readme.md (#7931) 2020-09-14 09:08:27 +01:00
remote.pb.go prompb: Add histograms to remote write/read protobufs 2022-06-29 18:01:12 +02:00
remote.proto prompb: Add histograms to remote write/read protobufs 2022-06-29 18:01:12 +02:00
types.pb.go Fix HistogramChunk's AtFloatHistogram() 2022-10-12 10:38:13 +05:30
types.proto prompb: Modify layout of histograms 2022-07-14 17:47:17 +02:00

The compiled protobufs are version controlled and you won't normally need to re-compile them when building Prometheus.

If however you have modified the defs and do need to re-compile, run make proto from the parent dir.

In order for the script to run, you'll need protoc (version 3.12.3) in your PATH.