You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c699648
Browse filesBrowse the repository at this point in the historyBrowse files
feat: add disk usage per app (gauge + chart) from du -sb via background collector
Disk usage collected from du -sb on each app home directory in the
10s background collector alongside existing container stats. The value
is stored in the container_stats table (disk_usage_bytes column) and
served to the UI via two paths:
- Page load: GetStatsOverview reads latest from DB
- Realtime WS: diskTicker (10s) reads latest from DB, no extra SSH call
Changes:
- model.go: add DiskUsageBytes to ContainerStats + StatsOverview
- schema.sql + db.go: add disk_usage_bytes column + ALTER TABLE migration
- repository.go: update all queries + add ContainerStatsDiskHistory
- stats.go: add collectDiskUsage helper, wire into collectors + LiveSnapshot
- service.go: map DiskUsageBytes in GetStatsOverview
- app_stats_ws.go: add diskTicker + disk_usage_bytes in WS JSON payload
- apps_stats_card.html: add disk gauge + SVG chart
- apps_detail.html: add disk to initLiveCharts metrics/lines/onData
- mock.go: add du -sb mock response
0 commit comments