prometheus/tsdb/wlog
Callum Styan a0f08a8365
Remote write v2: metadata support in every write request (#13394)
* Approach bundling metadata along with samples and exemplars

Signed-off-by: Paschalis Tsilias <paschalist0@gmail.com>

* Add first test; rebase with main

Signed-off-by: Paschalis Tsilias <paschalist0@gmail.com>

* Alternative approach: bundle metadata in TimeSeries protobuf

Signed-off-by: Paschalis Tsilias <paschalist0@gmail.com>

* update go mod to match main branch

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* fix after rebase

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* we're not going to modify the 1.X format anymore

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Modify AppendMetadata based on the fact that we be putting metadata into
timeseries

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Rename enums for remote write versions to something that makes more
sense + remove the added `sendMetadata` flag.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* rename flag that enables writing of metadata records to the WAL

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* additional clean up

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* lint

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* fix usage of require.Len

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* some clean up from review comments

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* more review fixes

Signed-off-by: Callum Styan <callumstyan@gmail.com>

---------

Signed-off-by: Paschalis Tsilias <paschalist0@gmail.com>
Signed-off-by: Callum Styan <callumstyan@gmail.com>
Co-authored-by: Paschalis Tsilias <paschalist0@gmail.com>
2024-01-25 13:25:05 -08:00
..
checkpoint.go tsdb/wlog: use Go standard errors package 2023-11-08 21:41:58 +00:00
checkpoint_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
live_reader.go tsdb/wlog: use Go standard errors package 2023-11-08 21:41:58 +00:00
reader.go tsdb/wlog: use Go standard errors package 2023-11-08 21:41:58 +00:00
reader_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
watcher.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
watcher_test.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
wlog.go tsdb: use Go standard errors 2023-12-11 12:18:54 +00:00
wlog_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00