After a standard upgrade, telegraf is now constantly crashing with the following:
Mar 16 20:42:45 home telegraf[18525]: panic: interface conversion: interface {} is nil, not map[string]uint64
Mar 16 20:42:45 home telegraf[18525]: goroutine 143 [running]:
Mar 16 20:42:45 home telegraf[18525]: github.com/influxdata/telegraf/plugins/inputs/ethtool.(*NamespaceGoroutine).Get(0xc000c34e40, {{0x3, 0x5dc, {0xc00047ecca, 0x6}, {0xc001300b34, 0x6, 0x29cc}, 0x13}, {0x70475c0, ...}})
Mar 16 20:42:45 home telegraf[18525]: /go/src/github.com/influxdata/telegraf/plugins/inputs/ethtool/namespace_linux.go:99 +0x125
Mar 16 20:42:45 home telegraf[18525]: github.com/influxdata/telegraf/plugins/inputs/ethtool.(*CommandEthtool).Get(0x0?, {{0x3, 0x5dc, {0xc00047ecca, 0x6}, {0xc001300b34, 0x6, 0x29cc}, 0x13}, {0x70475c0, ...}})
Mar 16 20:42:45 home telegraf[18525]: /go/src/github.com/influxdata/telegraf/plugins/inputs/ethtool/ethtool_linux.go:235 +0x55
Mar 16 20:42:45 home telegraf[18525]: github.com/influxdata/telegraf/plugins/inputs/ethtool.(*Ethtool).gatherEthtoolStats(0xc000ec60d0, {{0x3, 0x5dc, {0xc00047ecca, 0x6}, {0xc001300b34, 0x6, 0x29cc}, 0x13}, {0x70475c0, ...}}, ...)
Mar 16 20:42:45 home telegraf[18525]: /go/src/github.com/influxdata/telegraf/plugins/inputs/ethtool/ethtool_linux.go:135 +0x595
Mar 16 20:42:45 home telegraf[18525]: github.com/influxdata/telegraf/plugins/inputs/ethtool.(*Ethtool).Gather.func1({{0x3, 0x5dc, {0xc00047ecca, 0x6}, {0xc001300b34, 0x6, 0x29cc}, 0x13}, {0x70475c0, 0xc000c34e40}})
Mar 16 20:42:45 home telegraf[18525]: /go/src/github.com/influxdata/telegraf/plugins/inputs/ethtool/ethtool_linux.go:79 +0x58
Mar 16 20:42:45 home telegraf[18525]: created by github.com/influxdata/telegraf/plugins/inputs/ethtool.(*Ethtool).Gather
Mar 16 20:42:45 home telegraf[18525]: /go/src/github.com/influxdata/telegraf/plugins/inputs/ethtool/ethtool_linux.go:78 +0x2a8
Mar 16 20:42:45 home telegraf[18628]: 2023-03-16T20:42:45Z I! Loading config file: /etc/telegraf/telegraf.conf
Mar 16 20:42:45 home telegraf[18628]: 2023-03-16T20:42:45Z I! Starting Telegraf 1.26.0
I haven’t made any changes to the config and the config for ethtool looks like this:
[[inputs.ethtool]]
interface_include = ["enp0s25","wlp3s0"]
Which has been working for a long time. Both of those are valid interface names and even if I comment out the include line, it still keeps crashing.
I’ve now had to stop the monitoring of the network.
Can someone please help?
Thanks J.