-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ifstat.py bonded vlan interfaces #122
Comments
Hello Cristian. Why do you need to create vlan on a bond interface, why not ethX.VlanID ? |
Hi Vasily, for me eth0/1 are physical layer each goes to a switch, and above that i apply bondig so i can have active backup, so if one of the switches fail the os will use the other interface without any change on my part, using bondX.VlanID i can have vlans on the bond intefaces, and eth0/1 will just be slaves on bond0 vlan will be only on bond, so if you can make the regexp to catch only bondX.VlanID will work and won't duplicate pooling from eth, don't know if somebody uses vlans on eth0/1 and bond above this, so you will have both: vlan on bond and on eth Thank you for your help Cheers, |
even if we are including the bond.vlan_id interface there will still be On Wed, Dec 11, 2013 at 8:05 PM, Cristian Leonte
|
yes there will be some kind of double accounting but, it will give the possibility to see traffic by vlan, each vlan its for different destination, and now i can see only aggregated traffic and can't split by vlan |
understood, thanks! I would avoid any double accounting of traffic by On Thu, Dec 12, 2013 at 6:00 PM, Cristian Leonte
|
optional sounds good :) and other metric also Cheers, |
Hello Folks. We surely should not break existent flow, people suppose the collector ignore bond interfaces to avoid double counting. At this time I do not see any good ideas to add support of vlan counting but I am open to any ideas. Perhaps the best thing to do in meantime is to continue to use own version of ifstat collector. |
A good way to handle this might be to have a configurable regex for an interface whitelist and an interface blacklist. I too often have eth0/1 bonded onto bond0 then have multiple vlan interfaces on the bond0. There are systems and situations where all I really want to track is the vlan interfaces or the phsyical interfaces, but in many cases, not both. Alternatively, adding an interface_mode tag with values like "bond", "native" and "vlan" would make sense. |
What about an entirely different collector instead? that's unlikely to confuse people and it'll push to a different metric, doesn't need to be enabled by default. code/functionality can be shared between ifstat and ifstat_vlan (e.g.) in a module too, what do yo think? |
A different collector entirely makes good sense to me. |
While it's being discussed, I'd also throw in a request for measuring tunnel interfaces too, e.g. sit (for v6 in v4), ip6tnl (v6 tunnel), and tunl (v4 tunnel). I frequently want to see the breakdown of traffic going through individual tunnels. If we really want to keep ifstat "pure" in that it only measures physical interfaces and not bonds, and make another collector for bonds/vlans, then perhaps tunnel interfaces would be a good fit there too. I don't really understand why we're adverse to adding bond support to the main ifstat collector due to double counting. Is the reasoning here so that people can get aggregate NIC stats from a host without specifying the interface tag? |
It's not really that you would be aggregating nic stats across a single host but more likely saying "show me the bytes in for this collection of hosts". In that case the value would be inflated if virtual interfaces are included. We don't need a new collector neccesarily, but changing the metric name for virtual interfaces to reflect that would be good. |
ahh, that case makes sense |
Hi Guys,
I noticed that tcollector ignores bond interfaces, that's a good thing,but how about vlan interfaces?
My setup its like this: using bond in active backup mode and i have created vlan interfaces on a bond interface, which looks like bond0.VlanID, its there a way to make the collector capture this kind of interface traffic? i can submit a sample from /proc/net/dev if you want
Cheers,
Cristi
The text was updated successfully, but these errors were encountered: