diff --git a/plugins/inputs/ethtool/ethtool_linux.go b/plugins/inputs/ethtool/ethtool_linux.go index 6c0116e6e8089..e1a2f7c2bcbec 100644 --- a/plugins/inputs/ethtool/ethtool_linux.go +++ b/plugins/inputs/ethtool/ethtool_linux.go @@ -4,6 +4,7 @@ package ethtool import ( + "fmt" "net" "sync" @@ -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 }