Monitor your network interface statistics in real-time
6.7K
A sleek, responsive, containerized web dashboard to visualize network interface statistics using vnstatā .
vnstateth0, wlan0 etc.git clone https://github.com/Kshitiz-b/vnstat-dashboard.git
cd vnstat-dashboard
docker build -t vnstat-dashboard .
Make sure to use --privileged so that vnstat inside the container can access system data:
docker run -d \
--name vnstat-dashboard \
--privileged \
--network host \
-v /var/lib/vnstat:/var/lib/vnstat:ro \
kshitizb/vnstat-dashboard
Open your browser and navigate to:
http://localhost:8050
A ready-to-use docker-compose.yml is included:
services:
vnstat-dashboard:
image: kshitizb/vnstat-dashboard:latest
network_mode: host
privileged: true
volumes:
- /var/lib/vnstat:/var/lib/vnstat:ro
restart: unless-stopped
Run with:
docker compose up -d
| Variable | Description | Default |
|---|---|---|
PORT | Port the app listens on | 8050 |
FRONTEND_DIR | Path to built frontend | frontend-build |
ALLOWED_PREFIXES | Comma-separated list of allowed interface prefixes | eth,enp,wlan,wlp,tailscale,docker |
ALLOWED_INTERFACES | Explicit interface names (overrides prefix detection) | (none) |

vnstat installed and daemon running on host (sudo apt install vnstat)8050/api/interfaces ā List of available interfaces/api/vnstat/:interface ā Detailed JSON data for that interface.
āāā backend/
ā āāā server.js
āāā frontend/
ā āāā public/
ā āāā src/
āāā preview/
āāā docker-compose.yml
āāā Dockerfile
āāā README.md
backend/server.jsfrontend/src/App.js or TailwindCSSMIT Ā© Kshitizā
Content type
Image
Digest
sha256:b2dd6ef15ā¦
Size
40.5 MB
Last updated
6 days ago
docker pull kshitizb/vnstat-dashboard