Add an interface:"all" tag to the net protocol counters

fixes #508
This commit is contained in:
Cameron Sparr
2016-01-14 10:31:47 -08:00
parent 923be102b3
commit a39a7a7a03
3 changed files with 9 additions and 2 deletions

View File

@@ -94,7 +94,10 @@ func (s *NetIOStats) Gather(acc inputs.Accumulator) error {
fields[name] = value
}
}
acc.AddFields("net", fields, nil)
tags := map[string]string{
"interface": "all",
}
acc.AddFields("net", fields, tags)
return nil
}