SysWatch is an intelligent real-time monitoring system that combines:
- ⚡ Live system monitoring
- 🧠 AI-powered advisory insights
- 📈 Trend analysis
- 🚨 Smart anomaly detection
- 🔍 Software issue detection
- 💬 RAG-based AI assistant
Instead of only displaying CPU/RAM numbers, SysWatch explains:
What is happening, why it is happening, and what to do next.
| Feature | Description |
|---|---|
| 📊 Real-Time Dashboard | Live CPU, RAM, Disk, Network monitoring |
| 🚨 Smart Alerts | Detects warnings and critical state transitions |
| 🧠 AI Advisor | Generates human-readable optimization suggestions |
| 📈 Historical Analysis | Tracks metrics over time using CSV storage |
| 🔍 Software Detection | Detects memory leaks, thread explosions, suspicious processes |
| 💬 AI Chat | RAG-powered contextual assistant using system history |
| ⚡ Fast APIs | Flask backend with optimized routes and caching |
| 🧪 Evaluation Framework | Precision, Recall, F1, Latency benchmarking |
sys_watcher/
│
├── app.py # Flask backend and APIs
├── snapshot.py # System metrics collection
├── advisor.py # AI advisory engine
├── software_detector.py # Software issue detection
├── storage.py # CSV storage utilities
├── monitor.py # Terminal monitoring mode
│
├── templates/
│ └── index.html # Frontend dashboard
│
├── evaluation/
│ ├── evaluate.py # Evaluation framework
│ └── test_cases.json # Ground truth cases
│
├── metrics.csv
├── anomalies.csv
├── .env
└── README.md
| Endpoint | Purpose |
|---|---|
/api/metrics |
Live CPU/RAM/Disk metrics |
/api/processes |
Top RAM-consuming processes |
/api/network |
Network statistics |
/api/history |
Historical CSV data |
/api/anomalies |
Logged anomaly events |
/api/advisor |
AI-generated system advice |
/api/chat |
RAG-based AI assistant |
SysWatch includes an evaluation framework for measuring:
- ✅ Precision
- ✅ Recall
- ✅ F1 Score
- ✅ Latency
- ✅ Advisor relevance
Precision : 1.0000
Recall : 1.0000
F1 Score : 1.0000
Average Latency : 269ms
Advisor Relevance : 0.56
| Layer | Technology |
|---|---|
| Backend | Flask + Python |
| Monitoring | psutil |
| AI | Groq + Llama 3.1 |
| Frontend | HTML/CSS/JavaScript |
| Visualization | Chart.js |
| Terminal UI | Rich |
| Storage | CSV |
🔴 Critical CPU spikes
🟡 High RAM consumption
🔴 Disk nearing full capacity
🟡 Memory leak suspects
🔴 Handle leaks
🟡 Thread explosions
🔴 Suspicious process locations
- ✅ Runs locally
- ✅ Environment variables protected via
.env - ✅ No telemetry
- ✅ Read-only monitoring
- ✅ Sensitive files excluded using
.gitignore
- Predictive crash analysis
- Email/desktop notifications
- Docker deployment
- Multi-machine monitoring
- PDF system reports
- ML-based anomaly prediction
