-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
metricdog: respect proxy settings #1322
Conversation
Link TODO to a tracking issue |
Rebase. |
Is this something we should fix? |
Probably. It's not specific to proxy settings. A map key cannot be removed with the API. |
Use the proxy.env file to give HTTPS_PROXY and NO_PROXY values to metricdog. metricdog's HTTP client automatically picks these up and uses them.
reqwest does not support HTTPS_PROXY values that are not in URL format (i.e. if there is no protocol scheme). On Bottlerocket we expect an HTTPS_PROXY value with no scheme to be treated as http://. Here we check the HTTPS_PROXY value, and if it has no scheme we reset the value to prepend https://
Rebase |
Issue number:
#1298
Description of changes:
Use the
proxy.env
file to give proxy values to metricdog.A second commit provides a workaround for seanmonstar/reqwest#1176
Testing done:
192.168.57.178:8888
and setnetwork.https-proxy
to this value.network.no-proxy
to["metrics.bottlerocket.aws"]
, observed the metricdog pings stopped arriving at the tinyproxy.network.no-proxy
to[]
, observed the metricdog pings start arriving at the tinyproxy again.network.https-proxy
(this value cannot be unset once it has been set). Observed that metricdog pings were working.Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.