From a1f7d5549bd279d8604a0cb421e46c2b0647daaf Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Tue, 23 Jun 2015 14:51:38 -0700 Subject: [PATCH] Fix type error using URL as a string --- plugins/redis/redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)