Dont overwrite 'host' tag in redis plugin

fixes #331
This commit is contained in:
Cameron Sparr
2015-11-02 11:29:28 -07:00
parent 5592738603
commit 0398dc1226
2 changed files with 3 additions and 1 deletions

View File

@@ -148,7 +148,7 @@ func (r *Redis) gatherServer(addr *url.URL, acc plugins.Accumulator) error {
host, port := "unknown", "unknown"
// If there's an error, ignore and use 'unknown' tags
host, port, _ = net.SplitHostPort(addr.Host)
tags := map[string]string{"host": host, "port": port}
tags := map[string]string{"server": host, "port": port}
return gatherInfoOutput(rdr, acc, tags)
}