Updated readme

This commit is contained in:
Christoffer Martinsson 2025-10-13 08:13:20 +02:00
parent bab387c74d
commit 3de1e0db19

103
README.md
View File

@ -2,43 +2,78 @@
A high-performance Rust-based TUI dashboard for monitoring CMTEC infrastructure. Built to replace Glance with a custom solution tailored for specific monitoring needs and API integrations. Features real-time monitoring of all infrastructure components with intelligent email notifications and automatic status calculation.
### System Widget
```
CM Dashboard • srv01
┌System───────────────────────────────────────────────────────┐┌Services────────────────────────────────────────────────────┐
│ Memory usage ││ Service Memory (GB) CPU Disk │
│✔ 3.0 / 7.8 GB ││✔ Service Memory 7.1/23899.7 MiB — │
│ CPU load CPU temp ││✔ Disk Usage — — 45/100 GB │
│✔ 1.05 • 0.96 • 0.58 64.0°C ││⚠ CPU Load — 2.18 — │
│ C1E C3 C6 C8 C9 C10 ││✔ CPU Temperature — 47.0°C — │
│✔ 0.5% 0.5% 10.4% 10.2% 0.4% 77.9% ││✔ docker-registry 0.0 GB 0.0% <1 MB
│ GPU load GPU temp ││✔ gitea 0.4/4.1 GB 0.2% 970 MB │
└─────────────────────────────────────────────────────────────┘│ 1 active connections │
┌Storage──────────────────────────────────────────────────────┐│✔ nginx 0.0/1.0 GB 0.0% <1 MB
│ Drive Temp Wear Spare Hours Capacity Usage ││✔ ├─ docker.cmtec.se │
│✔ nvme0n1 57°C 4% 100% 11463 932G 23G (2%) ││✔ ├─ git.cmtec.se │
│ ││✔ ├─ gitea.cmtec.se │
│ ││✔ ├─ haasp.cmtec.se │
│ ││✔ ├─ pages.cmtec.se │
│ ││✔ ├─ photos.cmtec.se │
└─────────────────────────────────────────────────────────────┘│✔ └─ www.kryddorten.se │
┌Backups──────────────────────────────────────────────────────┐│✔ postgresql 0.1 GB 0.0% 378 MB │
│ Backup Status Details ││ 1 active connections │
│✔ Latest 3h ago 1.4 GiB ││✔ redis-immich 0.0 GB 0.4% <1 MB
│ 8 archives, 2.4 GiB total ││✔ sshd 0.0 GB 0.0% <1 MB
│✔ Disk ok 2.4/468 GB (1%) ││ 1 SSH connection │
│ ││✔ unifi 0.9/2.0 GB 0.4% 391 MB │
│ ││ │
└─────────────────────────────────────────────────────────────┘└────────────────────────────────────────────────────────────┘
┌Hosts────────────────────────────────────────────────────────┐
│ Host Status Timestamp │
│✔ cmbox ok 2025-10-13 05:45:28 │
│✔ srv01 ok 2025-10-13 05:45:28 │
│? labbox No data received — │
│ │
└─────────────────────────────────────────────────────────────┘
Keys: [←→] hosts [r]efresh [q]uit
┌System───────────────────────────────────────────────────────┐
│ Memory usage │
│✔ 3.0 / 7.8 GB │
│ CPU load CPU temp │
│✔ 1.05 • 0.96 • 0.58 64.0°C │
│ C1E C3 C6 C8 C9 C10 │
│✔ 0.5% 0.5% 10.4% 10.2% 0.4% 77.9% │
│ GPU load GPU temp │
│✔ — — │
└─────────────────────────────────────────────────────────────┘
```
### Services Widget (Enhanced)
```
┌Services────────────────────────────────────────────────────┐
│ Service Memory (GB) CPU Disk │
│✔ Service Memory 7.1/23899.7 MiB — │
│✔ Disk Usage — — 45/100 GB │
│⚠ CPU Load — 2.18 — │
│✔ CPU Temperature — 47.0°C — │
│✔ docker-registry 0.0 GB 0.0% <1 MB
│✔ gitea 0.4/4.1 GB 0.2% 970 MB │
│ 1 active connections │
│✔ nginx 0.0/1.0 GB 0.0% <1 MB
│✔ ├─ docker.cmtec.se │
│✔ ├─ git.cmtec.se │
│✔ ├─ gitea.cmtec.se │
│✔ ├─ haasp.cmtec.se │
│✔ ├─ pages.cmtec.se │
│✔ └─ www.kryddorten.se │
│✔ postgresql 0.1 GB 0.0% 378 MB │
│ 1 active connections │
│✔ redis-immich 0.0 GB 0.4% <1 MB
│✔ sshd 0.0 GB 0.0% <1 MB
│ 1 SSH connection │
│✔ unifi 0.9/2.0 GB 0.4% 391 MB │
└────────────────────────────────────────────────────────────┘
```
### Storage Widget
```
┌Storage──────────────────────────────────────────────────────┐
│ Drive Temp Wear Spare Hours Capacity Usage │
│✔ nvme0n1 57°C 4% 100% 11463 932G 23G (2%) │
│ │
└─────────────────────────────────────────────────────────────┘
```
### Backups Widget
```
┌Backups──────────────────────────────────────────────────────┐
│ Backup Status Details │
│✔ Latest 3h ago 1.4 GiB │
│ 8 archives, 2.4 GiB total │
│✔ Disk ok 2.4/468 GB (1%) │
└─────────────────────────────────────────────────────────────┘
```
### Hosts Widget
```
┌Hosts────────────────────────────────────────────────────────┐
│ Host Status Timestamp │
│✔ cmbox ok 2025-10-13 05:45:28 │
│✔ srv01 ok 2025-10-13 05:45:28 │
│? labbox No data received — │
└─────────────────────────────────────────────────────────────┘
```
**Navigation**: `←→` hosts, `r` refresh, `q` quit
## Key Features
### Real-time Monitoring