prometheus/util/httputil
Philippe Laflamme 2aba238f31 Use common HTTPClientConfig for marathon_sd configuration (#4009)
This adds support for basic authentication which closes #3090

The support for specifying the client timeout was removed as discussed in https://github.com/prometheus/common/pull/123. Marathon was the only sd mechanism doing this and configuring the timeout is done through `Context`.

DC/OS uses a custom `Authorization` header for authenticating. This adds 2 new configuration properties to reflect this.

Existing configuration files that use the bearer token will no longer work. More work is required to make this backwards compatible.
2018-04-05 09:08:18 +01:00
..
testdata Adding tests for util/httputil/client (#3002) 2017-08-09 13:23:57 +01:00
client.go Use common HTTPClientConfig for marathon_sd configuration (#4009) 2018-04-05 09:08:18 +01:00
client_test.go General simplifications (#3887) 2018-02-26 07:58:10 +00:00
compression.go Move pkg/ to util/ 2015-06-01 21:12:32 +02:00