Deprecate protocol stats in net input plugin #13248
Labels
help wanted
Request for community participation, code, contribution
plugin/input
1. Request for new input plugins 2. Issues/PRs that are related to input plugins
rfc
Request for comment - larger issues that require clarification
size/s
1 day effort, great beginniner issue
#382 adjusted the
net
input plugin to obtain protocol statistics, by reading/proc/net/snmp
. This is only possible under Linux, and the data is completely orthogonal to everything else that thenet
plugin collects (none of the same fields are used in the measurements, and it is not keyed by network interface). The documentation says this behavior is available "for the time being", and it can be disabled with the configuration optionignore_protocol_stats = true
.The
nstat
plugin (#1104) was introduced shortly afterwards. It not only collects the same data from/proc/net/snmp
, but also the data in/proc/net/snmp6
and/proc/net/netstat
. It also lists the resulting metrics in its documentation.I believe the
net
plugin should deprecate (and eventually remove) protocol statistics collection, by makingignore_protocol_stats = true
the default and adjusting the documentation to discourage its use. This will simplify its behavior and greatly reduce the amount of data it produces by default.The text was updated successfully, but these errors were encountered: