Update CLAUDE.md with current system panel implementation status

This commit is contained in:
Christoffer Martinsson 2025-10-23 15:47:17 +02:00
parent 1e5f8d6111
commit 84e21dc79a

View File

@ -8,50 +8,41 @@ A high-performance Rust-based TUI dashboard for monitoring CMTEC infrastructure.
### Current Implementation Status ### Current Implementation Status
**Systemd Collector Optimization - COMPLETED** ✅ **System Panel Enhancement - COMPLETED** ✅
All phases successfully implemented: All system panel features successfully implemented:
- ✅ **Phase 1**: Exact name filtering implemented - ✅ **NixOS Collector**: Created collector for version and active users
- ✅ **Phase 2**: User service collection removed - ✅ **System Widget**: Unified widget combining NixOS, CPU, RAM, and Storage
- ✅ **Phase 3**: Wildcard pattern support added - ✅ **Build Display**: Shows NixOS build information without codename
- ✅ **Phase 4**: Status caching and systemctl call optimization completed - ✅ **Active Users**: Displays currently logged in users
- ❌ **Phase 5**: Skipped (would increase systemctl calls vs current caching) - ✅ **Tmpfs Monitoring**: Added /tmp usage to RAM section
- ✅ **Agent Deployment**: NixOS collector working in production
**Performance Results:** **Current Status - October 23, 2025:**
- Reduced from ~21 systemctl calls to 1 call every 10 seconds (configurable) - Agent successfully collecting NixOS metrics (confirmed in logs)
- Fixed RwLock deadlock issues - Dashboard shows "Build: unknown" - investigating metric reception/display
- Removed hardcoded discovery intervals - Tmpfs monitoring working correctly in RAM section
- All other system metrics functioning properly
### Next Priority: System Panel Enhancement (Based on TODO.md) **Layout Achieved:**
**Target Layout:**
``` ```
NixOS: NixOS:
Version: xxxxxxxxxx Build: 25.05.20251004.3bcc93c # Target (currently shows "unknown")
Active users: cm, simon Active users: cm, simon
CPU: CPU:
● Load: 0.02 0.31 0.86 • 3000 MHz ● Load: 0.02 0.31 0.86 • 3000MHz
RAM: RAM:
● Usage: 33% 2.6GB/7.6GB ● Usage: 33% 2.6GB/7.6GB
● /tmp: 0% 0B/2.0GB ● /tmp: 0% 0B/2.0GB
Storage: Storage:
● root (Single): ● root (Single):
├─ ● nvme0n1 Temp: 40C Wear: 4% ├─ ● nvme0n1 W: 1%
└─ ● 8% 75.0GB/906.2GB └─ ● 18% 167.4GB/928.2GB
``` ```
**Implementation Tasks:** **Outstanding Issue:**
1. **NixOS Version Display** - Dashboard displays "Build: unknown" despite agent collecting metrics correctly
- Collect system version information - Need to investigate ZMQ communication or dashboard metric filtering
- Show timestamp/version for latest nixos rebuild
2. **Active Users Display**
- Implement user session detection
- Show currently logged in/active users
3. **System Widget Layout Update**
- Update dashboard to match new layout specification
- Integrate NixOS version and user information
### Future Priorities ### Future Priorities