(using IP > Accounting, so v6.* of ROS)
Mikrotik Traffic Monitor is a relatively small and lightweight server-side tool to collect and process Accounting data from Mikrotik routers running RouterOS and present them in a form that's easy to analyze.
It uses python Flask for the server side of things.
cd /opt/
git clone https://github.com/Nixellion/MikrotikTrafficMonitor.git
apt install python3 python3-pip python3-dev
cd MikrotikTrafficMonitor
pip3 install -r requirements.txt
cp MikrotikTrafficMonitor.service /lib/systemd/system
systemctl daemon-reload
systemctl enable MikrotikTrafficMonitor
service MikrotikTrafficMonitor start
systemctl status MikrotikTrafficMonitor
You need to go into winbox > IP - Accounting and enable Accounting, also enable Web Access there and type the IP of the machine where this tool will run on. Port (and host-IP) for web-access is set in /opt/MikrotikTrafficMonitor/config/config.yaml !
You may also need to disable fast track as traffic that goes through fast track is not accounted for by RouterOS.