Skip to content

Commit

Permalink
Fix unix socket dial arguments in uwsgi input (influxdata#6769)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored Dec 9, 2019
1 parent c5085f0 commit be83e3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/inputs/uwsgi/uwsgi.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ func (u *Uwsgi) gatherServer(acc telegraf.Accumulator, url *url.URL) error {
}
s.source = url.Host
case "unix":
r, err = net.DialTimeout(url.Scheme, url.Host, u.Timeout.Duration)
r, err = net.DialTimeout(url.Scheme, url.Path, u.Timeout.Duration)
if err != nil {
return err
}
s.source, err = os.Hostname()
if err != nil {
s.source = url.Host
s.source = ""
}
case "http":
resp, err := u.client.Get(url.String())
Expand Down

0 comments on commit be83e3b

Please sign in to comment.