diff --git a/plugins/redis/redis.go b/plugins/redis/redis.go index 6f2648c7b..e936ae723 100644 --- a/plugins/redis/redis.go +++ b/plugins/redis/redis.go @@ -186,7 +186,7 @@ func (g *Redis) gatherServer(addr *url.URL, acc plugins.Accumulator) error { continue } - tags := map[string]string{"host": addr} + tags := map[string]string{"host": addr.String()} val := strings.TrimSpace(parts[1]) ival, err := strconv.ParseUint(val, 10, 64)