edirpedro / vnstat-dashboard

Data Visualization app for vnStat
MIT License
8 stars 1 forks source link

Is it possible to modify the monitored interfaces? #2

Closed lee911214 closed 3 months ago

lee911214 commented 4 months ago

Hi, I would like to ask about multiple interfaces, for example, after installing docker it will show docker0 interfaces, while the real one is not this one, and vnstat stats are not docker0. How to modify this case so that the interface only shows the name of the network card that vnstat stats are for? For example, my URL is http://45.83.107.238/vnstat

edirpedro commented 4 months ago

It reads all the interfaces that json output on the file. I found a small bug on that menu that will be fixed soon. To make it work just set alias to the interfaces you are using like vnstat -i docker0 --setalias "Cable", set an alias for each interface that this make it work.

Captura de Tela 2024-04-16 às 10 05 44