From 5a2a0e81ad3a32c942e11043e73afdb30e2e9ee1 Mon Sep 17 00:00:00 2001 From: Hunter Gregory <42728408+huntergregory@users.noreply.github.com> Date: Wed, 13 Nov 2024 11:45:31 -0800 Subject: [PATCH] fix(ethtool): enable filtering out non-err/drop stats (#1003) Reduce cardinality of `interface_stats` by only keeping stats with "err" or "drop" in the name. Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com> --- pkg/plugin/linuxutil/linuxutil_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/plugin/linuxutil/linuxutil_linux.go b/pkg/plugin/linuxutil/linuxutil_linux.go index 4a1a3b5549..aa4d2d24f9 100644 --- a/pkg/plugin/linuxutil/linuxutil_linux.go +++ b/pkg/plugin/linuxutil/linuxutil_linux.go @@ -87,7 +87,7 @@ func (lu *linuxUtil) run(ctx context.Context) error { }() ethtoolOpts := &EthtoolOpts{ - errOrDropKeysOnly: false, + errOrDropKeysOnly: true, addZeroVal: false, limit: defaultLimit, }