prometheus/storage/remote
Robert Fratto 5b78aa0649
Contribute grafana/agent sigv4 code (#8509)
* Contribute grafana/agent sigv4 code
* address review feedback
  - move validation logic for RemoteWrite into unmarshal
  - copy configuration fields from ec2 SD config
  - remove enabled field, use pointer for enabling sigv4
* Update config/config.go
* Don't provide credentials if secret key / access key left blank
* Add SigV4 headers to the list of unchangeable headers.
* sigv4: don't include all headers in signature
* only test for equality in the authorization header, not the signed date
* address review feedback
  1. s/httpClientConfigEnabled/httpClientConfigAuthEnabled
  2. bearer_token tuples to "authorization"
  3. Un-export NewSigV4RoundTripper
* add x-amz-content-sha256 to list of unchangeable headers
* Document sigv4 configuration
* add suggestion for using default AWS SDK credentials

Signed-off-by: Robert Fratto <robertfratto@gmail.com>
Co-authored-by: Julien Pivotto <roidelapluie@gmail.com>
2021-03-08 12:20:09 -07: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 Contribute grafana/agent sigv4 code (#8509) 2021-03-08 12:20:09 -07:00
client_test.go Adds support to configure retry on Rate-Limiting from remote-write config. 2021-02-16 14:52:49 +05:30
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 Consider status code 429 as recoverable errors to avoid resharding (#8237) 2021-02-10 15:25:37 -07: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 Add matchers to LabelValues() call (#8400) 2021-02-09 23:08:35 +05:30
read_handler.go Move remote read handler to remote package. (#8536) 2021-02-26 16:43:19 +00:00
read_handler_test.go Move remote read handler to remote package. (#8536) 2021-02-26 16:43:19 +00:00
read_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
sigv4.go Contribute grafana/agent sigv4 code (#8509) 2021-03-08 12:20:09 -07:00
sigv4_test.go Contribute grafana/agent sigv4 code (#8509) 2021-03-08 12:20:09 -07:00
storage.go Custom headers on remote-read and refactor implementation to roundtripper. 2021-02-26 17:20:29 +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 Contribute grafana/agent sigv4 code (#8509) 2021-03-08 12:20:09 -07:00
write_handler.go Move remote read handler to remote package. (#8536) 2021-02-26 16:43:19 +00:00
write_handler_test.go Combine Appender.Add and AddFast into a single Append method. (#8489) 2021-02-18 17:37:00 +05:30
write_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30