Skip to content

Commit

Permalink
Add support for proxy (#140)
Browse files Browse the repository at this point in the history
* Add support for proxy

Signed-off-by: rustyclock <[email protected]>

* move proxy to utils

Co-authored-by: JeaNoel Vouilloz <[email protected]>
  • Loading branch information
rustycl0ck and ichtar committed Nov 20, 2020
1 parent 1fede2f commit 486e009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion exporters/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package exporters
import (
"crypto/tls"
"fmt"
"github.com/hashicorp/go-uuid"
"net/http"
"time"

"github.com/gophercloud/gophercloud"
"github.com/gophercloud/utils/openstack/clientconfig"
"github.com/hashicorp/go-uuid"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/log"
)
Expand Down
1 change: 1 addition & 0 deletions exporters/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func AuthenticatedClient(opts *clientconfig.ClientOpts, transport *http.Transpor
}

if transport != nil {
transport.Proxy = http.ProxyFromEnvironment
client.HTTPClient.Transport = transport
}

Expand Down

0 comments on commit 486e009

Please sign in to comment.