Add a server name tag to the RabbitMQ server list

Fixes #183
This commit is contained in:
Cameron Sparr
2015-09-11 16:21:43 -07:00
parent bd00f46d8b
commit 11126cf4ae
2 changed files with 9 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/shirou/gopsutil/common"
"github.com/influxdb/telegraf/plugins/system/ps/common"
)
func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
@@ -26,7 +26,7 @@ func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
// skip first line
continue
}
if common.StringsHas(exists, values[0]) {
if common.StringContains(exists, values[0]) {
// skip if already get
continue
}