prometheus/config
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 Use common HTTPClientConfig for marathon_sd configuration (#4009) 2018-04-05 09:08:18 +01:00
config.go Use common HTTPClientConfig for marathon_sd configuration (#4009) 2018-04-05 09:08:18 +01:00
config_default_test.go Renaming the config_notwin test to config_default 2017-07-10 11:08:16 -03:00
config_test.go Use common HTTPClientConfig for marathon_sd configuration (#4009) 2018-04-05 09:08:18 +01:00
config_windows_test.go Fixing code style to adhere gofmt 2017-07-09 02:43:33 -03:00