Remove hardcoded discovery interval in systemd collector
- Use config.interval_seconds instead of hardcoded 300 seconds - Discovery now happens every 10 seconds (configurable) instead of 5 minutes - Follows configuration-driven architecture requirements
This commit is contained in:
parent
0f12438ab4
commit
c99e0bd8ee
8
TODO.md
8
TODO.md
@ -19,14 +19,14 @@ CPU:
|
||||
● Load: 0.02 0.31 0.86 • 3000.2 MHz
|
||||
RAM:
|
||||
● Usage: 33% 2.6GB/7.6GB
|
||||
● /tmp: 0.0% 0B/2.0GB
|
||||
● /tmp: 0% 0B/2.0GB
|
||||
Storage:
|
||||
● root (Single):
|
||||
├─ ● nvme0n1 W:4%
|
||||
└─ ● 8.3% 75.0GB/906.2GB
|
||||
├─ ● nvme0n1 Temp: 40C Wear: 4%
|
||||
└─ ● 8% 75.0GB/906.2GB
|
||||
'''
|
||||
|
||||
- Add support to show login users
|
||||
- Add support to show login/active users
|
||||
- Add support to show timestamp/version for latest nixos rebuild
|
||||
|
||||
## Keyboard navigation and scrolling (dashboard)
|
||||
|
||||
@ -52,7 +52,7 @@ impl SystemdCollector {
|
||||
monitored_services: Vec::new(),
|
||||
service_status_cache: std::collections::HashMap::new(),
|
||||
last_discovery_time: None,
|
||||
discovery_interval_seconds: 300, // 5 minutes
|
||||
discovery_interval_seconds: config.interval_seconds,
|
||||
nginx_site_metrics: Vec::new(),
|
||||
last_nginx_check_time: None,
|
||||
nginx_check_interval_seconds: 30, // 30 seconds for nginx sites
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user