prometheus/scrape
Robert Fratto f0ec619eec
scrape: allow providing a custom Dialer for scraping (#10415)
* scrape: allow providing a custom Dialer for scraping

This commit extends config.ScrapeConfig with an optional field to
override how HTTP connections to targets are created. This field is not
set directly in Prometheus, and is only added for the convenience of
downstream importers.

Closes #9706

Signed-off-by: Robert Fratto <robertfratto@gmail.com>

* scrape: move custom dial function to scrape.Options

Signed-off-by: Robert Fratto <robertfratto@gmail.com>
2022-03-09 00:48:47 +01:00
..
testdata Use SAN in test certificate (#7789) 2020-08-12 23:15:38 +02:00
helpers_test.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
manager.go scrape: allow providing a custom Dialer for scraping (#10415) 2022-03-09 00:48:47 +01:00
manager_test.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
scrape.go scrape: allow providing a custom Dialer for scraping (#10415) 2022-03-09 00:48:47 +01:00
scrape_test.go scrape: allow providing a custom Dialer for scraping (#10415) 2022-03-09 00:48:47 +01:00
target.go Remove check against cfg so interval/ timeout are always set (#10023) (#10031) 2021-12-16 16:46:14 +01:00
target_test.go Remove check against cfg so interval/ timeout are always set (#10023) (#10031) 2021-12-16 16:46:14 +01:00