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

Difficulty level
Easy (less than an hour)
Version
1.4-rolling-202312041649 (sagitta)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change
Issue type
Improvement (missing useful functionality)