Fix type error using URL as a string
This commit is contained in:
parent
5fbd07b146
commit
a1f7d5549b
|
@ -186,7 +186,7 @@ func (g *Redis) gatherServer(addr *url.URL, acc plugins.Accumulator) error {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
tags := map[string]string{"host": addr}
|
tags := map[string]string{"host": addr.String()}
|
||||||
val := strings.TrimSpace(parts[1])
|
val := strings.TrimSpace(parts[1])
|
||||||
|
|
||||||
ival, err := strconv.ParseUint(val, 10, 64)
|
ival, err := strconv.ParseUint(val, 10, 64)
|
||||||
|
|
Loading…
Reference in New Issue