prometheus/storage/remote
Tom Wilkie d479151f1f Various enhancements and refactorings for remote write receiver:
- Remove unrelated changes
- Refactor code out of the API module - that is already getting pretty crowded.
- Don't track reference for AddFast in remote write.  This has the potential to consume unlimited server-side memory if a malicious client pushes a different label set for every series.  For now, its easier and safer to always use the 'slow' path.
- Return 400 on out of order samples.
- Use remote.DecodeWriteRequest in the remote write adapters.
- Put this behing the 'remote-write-server' feature flag
- Add some (very) basic docs.
- Used named return & add test for commit error propagation

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2021-02-08 20:41:23 +00:00
..
chunked.go Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109) 2020-04-15 11:17:41 +01:00
chunked_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
client.go remote_write: allow passing along custom HTTP headers (#8416) 2021-02-04 14:18:13 -07:00
client_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
codec.go Various enhancements and refactorings for remote write receiver: 2021-02-08 20:41:23 +00:00
codec_test.go Various enhancements and refactorings for remote write receiver: 2021-02-08 20:41:23 +00:00
ewma.go Replace sync/atomic with uber-go/atomic (#7683) 2020-07-30 13:15:42 +05:30
intern.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
intern_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +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 Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
metadata_watcher_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
queue_manager.go [remote storage] remove sendWriteRequestWithBackoff() "s" and "req" param 2021-02-04 21:38:32 +08:00
queue_manager_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
read.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
read_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
storage.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
storage_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
write.go remote_write: allow passing along custom HTTP headers (#8416) 2021-02-04 14:18:13 -07:00
write_hander.go Various enhancements and refactorings for remote write receiver: 2021-02-08 20:41:23 +00:00
write_handler_test.go Various enhancements and refactorings for remote write receiver: 2021-02-08 20:41:23 +00:00
write_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30