blackbox_exporter
blackbox_exporter copied to clipboard
Add source_ip_address support to http probes
This is a logical continuation of #262.
It's the same as #765 but without changing prometheus/common
as @roidelapluie suggested.
Signed-off-by: Ivan Babrou [email protected]
@roidelapluie, this approach doesn't seem to work very well, given that there may be multiple layers of transport.
@roidelapluie, this approach doesn't seem to work very well, given that there may be multiple layers of transport.
Can you be more explicit?
Look at the failed test:
panic: interface conversion: http.RoundTripper is *config.basicAuthRoundTripper, not *http.Transport
I don't see a good way to update DialContext
in http.RoundTripper
that is wrapped by config.basicAuthRoundTripper
.
Hello @bobrik . Now the HTTP client supports passing special dialcontext funcs so we could implement all this in the blackbox exporter: https://github.com/prometheus/common/pull/291