How ravindulakmina/linux-monitor-dashboard works
Linux Monitor Dashboard serves system statistics from a Flask API and presents them in a browser dashboard. The browser fetches /api/stats, renders host and OS details, and charts CPU, memory, and disk usage. The API gathers these values from Linux and system libraries; temperature is reported when available. The README describes local and remote deployment, but deployment files are excluded from this runtime architecture. Edges are supported by the sampled source and README; no separate polling loop or storage layer is shown.
Main entry points: index.html Dashboard page · script.js Fetch and render · app.py System info collector · style.css Dashboard styles
Components 11
Dashboard UI
- Dashboard page
frontend/index.html - Fetch and render
frontend/script.js - Dashboard styles
frontend/style.css - Charts and info display
frontend/script.js
Monitoring API
- Stats endpoint
backend/app.py
System metrics
- System info collector
backend/app.py
Other components
- Dashboard user
- Linux system
- psutil metrics
- OS and host info
- Chart.js
Connections 10
- Dashboard user → Dashboard page: opens
README.md - Dashboard page → Fetch and render: loads script
README.md - Fetch and render → Stats endpoint: fetches stats
frontend/script.js - Stats endpoint → System info collector: calls collector
backend/app.py - System info collector → psutil metrics: reads metrics
backend/app.py - System info collector → OS and host info: reads host details
backend/app.py - psutil metrics → Linux system: samples resources
- Fetch and render → Charts and info display: renders data
frontend/script.js - Charts and info display → Chart.js: creates charts
frontend/script.js - Dashboard page → Dashboard styles: uses styles