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 and Mathieu Lecarme committed Apr 17, 2020
1 parent 32c08c7 commit 18b8abf
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 18b8abf

Please sign in to comment.