Page MenuHomeVyOS Platform

Missed per-interface statistic in telegraf
Closed, ResolvedPublicBUG

Description

Hello, after my latest update, I noticed that there is no data in the network interfaces graphs. After conducting a small investigation, I discovered that in https://vyos.dev/rVYOSONEX6a10149ca56e77dce91c9771b48b0b3fd8c9ab9e, Viacheslav removed

[[inputs.net]]

and replaced it with

[[inputs.nstat]]

in response to a deprecated message. However, if we check the net plugin information (https://github.com/influxdata/telegraf/blob/master/plugins/inputs/net/README.md), we can see that it is deprecated only for the option "ignore_protocol_stats = false" because they recommend using inputs.nstat for this specific data, not for all network data. inputs.nstat doesn't provide information about per-interface load.

In this scenario, I believe it would be beneficial to re-enable both plugins and set "ignore_protocol_stats = true" for the net plugin.

Details

Version
1.4-rolling-202312041649 (sagitta)
Is it a breaking change?
Behavior change

Event Timeline

Viacheslav changed the task status from Open to Needs testing.Dec 8 2023, 3:01 PM
Viacheslav assigned this task to vfomkin.
Viacheslav moved this task from Open to Finished on the VyOS 1.4 Sagitta board.

The issue is still there in VyOS 1.4 Sagitta and 1.5-rolling-202412160007

show system image
Name                      Default boot    Running
------------------------  --------------  ---------
1.5-rolling-202412160007  Yes             Yes

cat /etc/telegraf/telegraf.conf | grep inputs.net
# [[inputs.net]]

I see the correct fix here, but not sure what's up with it: https://vyos.dev/rVYOSONEX9c8a7a987fcb99adaa9ba8d423640441e8725ecf
https://github.com/vyos/vyos-1x/pull/2589