Skip to content

Commit

Permalink
modify input plugin 'net' to ignore IPoIB interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
koallen committed Jan 11, 2019
1 parent df06939 commit 9e9133f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/inputs/net/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ func (s *NetIOStats) Gather(acc telegraf.Accumulator) error {
if iface.Flags&net.FlagUp == 0 {
continue
}

// ignore IPoIB interfaces in favor of the infiniband plugin
if strings.HasPrefix(io.Name, "ib") {
continue
}
}

tags := map[string]string{
Expand Down

0 comments on commit 9e9133f

Please sign in to comment.