Add support for standard proxy env vars in outputs. (#3212)

This commit is contained in:
Daniel Nelson
2017-09-08 15:35:20 -07:00
committed by GitHub
parent c4e9c8cbf2
commit 5920cc9571
4 changed files with 11 additions and 0 deletions

View File

@@ -55,7 +55,11 @@ func (d *Datadog) Connect() error {
if d.Apikey == "" {
return fmt.Errorf("apikey is a required field for datadog output")
}
d.client = &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
},
Timeout: d.Timeout.Duration,
}
return nil