closes #828
closes #829
This commit is contained in:
Thibault Cohen
2016-03-10 14:41:03 -05:00
committed by Michele Fadda
parent 649620ae0f
commit a44c093fa7
4 changed files with 8 additions and 7 deletions

View File

@@ -169,7 +169,7 @@ func (c *NetResponse) Gather(acc telegraf.Accumulator) error {
return errors.New("Bad port")
}
// Prepare data
tags := map[string]string{"host": host, "port": port}
tags := map[string]string{"server": host, "port": port}
var fields map[string]interface{}
// Gather data
if c.Protocol == "tcp" {