secubox-openwrt/package/secubox/luci-app-metrics-dashboard/root/etc/cron.d/metrics-dashboard
CyberMind-FR 9263fd7e4b feat(metrics): KISS-styled dashboard with double-buffer caching
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>
2026-03-17 12:37:57 +01:00

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