Skip to content

Commit

Permalink
fix: debug ethtool fields
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Oct 11, 2021
1 parent 7c16822 commit 91ceebb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/inputs/ethtool/ethtool_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package ethtool

import (
"fmt"
"net"
"sync"

Expand Down Expand Up @@ -79,8 +80,10 @@ func (e *Ethtool) gatherEthtoolStats(iface net.Interface, acc telegraf.Accumulat
return
}

_, _ = fmt.Println(stats)
fields[fieldInterfaceUp] = e.interfaceUp(iface)
for k, v := range stats {
_, _ = fmt.Printf("\"%s\": \"%d\"\n", k, v)
fields[k] = v
}

Expand Down

0 comments on commit 91ceebb

Please sign in to comment.