this post was submitted on 03 Mar 2024
13 points (88.2% liked)

Linux

48220 readers
613 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I am using vnStat to monitor network bandwidth on a Debian host that has several Docker containers. Because of the containers, there are several interfaces in addition to eth0.

My question is, should I just monitor eth0 instead of looking at all the bridge and virtual interfaces to get the actual usage because at the end of the day, everything goes through eth0? Or am I looking at this wrong?

Sample output:

                      rx      /      tx      /     total    /   estimated
 br-1ee235bc0b60:
       2024-03     13.56 MiB  /   97.42 MiB  /  110.98 MiB  /  391.02 GiB
         today     13.56 MiB  /   97.42 MiB  /  110.98 MiB  /  112.54 MiB

 br-2ce98d77a35a:
       2024-03           0 B  /         0 B  /         0 B  /     --
         today           0 B  /         0 B  /         0 B  /     --

 docker0:
       2024-03           0 B  /         0 B  /         0 B  /     --
         today           0 B  /         0 B  /         0 B  /     --

 eth0:
       2024-03     98.03 MiB  /   15.04 MiB  /  113.07 MiB  /  398.37 GiB
         today     98.03 MiB  /   15.04 MiB  /  113.07 MiB  /  114.66 MiB
you are viewing a single comment's thread
view the rest of the comments
[–] Shadow@lemmy.ca 5 points 8 months ago

Yes, just look at eth0. You might like the iptraf tool too.