Skip to content

Commit 0fc1ee6

Browse files
authored
chore: collect network interface statistics, configurations and parameters (#117)
* Collect network interface statistics Signed-off-by: Evans Mungai <evans@replicated.com> * Add ethtool info collector Signed-off-by: Evans Mungai <evans@replicated.com> --------- Signed-off-by: Evans Mungai <evans@replicated.com>
1 parent a03d082 commit 0fc1ee6

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

host/default.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,49 @@ spec:
478478
collectorName: "localhost-ips"
479479
command: "sh"
480480
args: ["-c", "host localhost"]
481+
- run:
482+
collectorName: "ip-address-stats"
483+
command: "ip"
484+
args: ["-s", "-s", "address"]
485+
- run:
486+
collectorName: "ethool-info"
487+
command: "sh"
488+
args:
489+
- -c
490+
- >
491+
interfaces=$(ls /sys/class/net);
492+
for iface in $interfaces; do
493+
echo "==============================================";
494+
echo "Interface: $iface";
495+
echo "==============================================";
496+
497+
echo
498+
echo "--- Basic Info ---"
499+
ethtool "$iface"
500+
501+
echo
502+
echo "--- Features (Offloads) ---"
503+
ethtool -k "$iface"
504+
505+
echo
506+
echo "--- Pause Parameters ---"
507+
ethtool -a "$iface"
508+
509+
echo
510+
echo "--- Ring Parameters ---"
511+
ethtool -g "$iface"
512+
513+
echo
514+
echo "--- Coalesce Settings ---"
515+
ethtool -c "$iface"
516+
517+
echo
518+
echo "--- Driver Info ---"
519+
ethtool -i "$iface"
520+
521+
echo
522+
echo
523+
done
481524
hostAnalyzers:
482525
- certificate:
483526
collectorName: k8s-api-keypair

0 commit comments

Comments
 (0)