How to Install vnstat on Alpine Linux

VnStat is a free and open-source console-based network traffic monitor for servers and routers. It keeps a log of the 5-minute interval, hourly, daily, monthly, and yearly network traffic for the selected interface(s). Let us see how to install vnStat on the Alpine Linux server to keep a tab on bandwidth usage.