vnStat is a network traffic monitor that uses the network interface statistics provided by the kernel as information source. This means that vnStat won't actually be sniffing any traffic and also ensures light use of system resources regardless of network traffic rate.
By default, traffic statistics are stored on a five minute level for the last 48 hours, on a hourly level for the last 4 days, on a daily level for the last 2 full months and on a yearly level forever. The data retention durations are fully user configurable. Total seen traffic and a top days listing is also provided.
See the official webpage or the GitHub repository for additional details and output examples. An example of the included image output is also available.
WebSite: https://humdi.net/vnstat/
Live Demo: https://humdi.net/vnstat/cgidemo/
DockerHub: https://hub.docker.com/r/vergoh/vnstat
GitHub: https://github.com/vergoh/vnstat
MyRepository: https://github.com/ItJustFox/unraidtemplate/
There is some command to add / remove any interface to monitore or not.
Here is the list you can use, good to know that (interfacename) will be used for the name of interface that can be br-20f8582bfc70
or eno3
or br0
even pterodactyl0
ect ect...
vnstat --iflist
vnstat -i (interfacename) --add
The daemon will notice the change within 5 minutes and start monitoring the interface
vnstat -i (interfacename) --remove --force
vnstat -i (interfacename) --setalias "Basement switch"