UI: - Clean card grid with colored stat values - Services status bar (HAProxy, WAF, CrowdSec) with glowing dots - Two-panel layout for WAF/Security and Connections - Live clock with pulsing indicator - Proper KissTheme.wrap() integration Performance: - Double-buffer cache at /tmp/secubox/metrics-cache.json - 30s TTL with async background refresh - Cron job for periodic cache updates - Instant RPCD response (no computation on request) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
4 lines
223 B
Plaintext
4 lines
223 B
Plaintext
# SecuBox Metrics Dashboard - Cache refresh every 30 seconds
|
|
* * * * * root /usr/libexec/rpcd/luci.metrics call refresh >/dev/null 2>&1
|
|
* * * * * root sleep 30 && /usr/libexec/rpcd/luci.metrics call refresh >/dev/null 2>&1
|