rfparedes / gdg

Granular Data Gatherer is an easy and open all-in-one tool to collect OS metrics for troubleshooting
GNU General Public License v3.0
5 stars 1 forks source link

Don't gather data from non-physical nics #10

Closed rfparedes closed 3 years ago

rfparedes commented 3 years ago

Don't create a gather for non-physical NICs like lo, docker, calico, VPN, etc. ethtool won't return any data for "non-physical" NICs.

johanburati commented 3 years ago

I have checked it on my box, looks okay.

Old code:

[lo eno1 wlp0s20f3 mpqemubr0-dummy mpqemubr0 tap-883bdd0e32e tap-c420befbb19 tap-4821f604eac tap-8b798dca6c9 tap-878375ae5ce docker0 tap-ee4141f210d]

New code:

[eno1 wlp0s20f3]
rfparedes commented 3 years ago

Perfect. Thanks Johan.