prometheus/storage/remote
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
..
azuread golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
otlptranslator Enable default revive rules (#13068) 2023-11-29 17:23:34 +00:00
chunked.go (storage): move from github.com/pkg/errors to 'errors' and 'fmt' (#10946) 2022-07-01 18:59:50 +02:00
chunked_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
client.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
client_test.go remote_write: add a unit test to make sure the write client sends 2023-11-09 15:56:48 +01:00
codec.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
codec_test.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
ewma.go style: Replace else if cascades with switch 2023-04-19 17:22:31 +02:00
intern.go remove all code from previous interning approach 2023-12-19 14:27:54 -03:00
intern_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
max_timestamp.go Remote: Do not collect non-initialized timestamp metrics (#8060) 2020-10-15 23:53:59 +02:00
metadata_watcher.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
metadata_watcher_test.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
queue_manager.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
queue_manager_test.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
read.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
read_handler.go ci(lint): enable errorlint on storage (#12935) 2023-10-31 12:15:30 +01:00
read_handler_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
read_test.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
storage.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
storage_test.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
write.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
write_handler.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
write_handler_test.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00
write_test.go Remote write v2: metadata support in every write request (#13394) 2024-01-25 13:25:05 -08:00