feat: add bandwidth saved stat to dashboard
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful

Queries access_log for cache hits in the last 30 days and sums their
size_bytes. Displayed as a new StatsCard on the dashboard.
This commit is contained in:
2026-06-27 08:10:14 +10:00
parent 30b7cef026
commit 8e1f950433
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -50,6 +50,11 @@ export function Dashboard() {
value={formatNumber(stats.total_blobs_deduped)}
sub="shared blobs"
/>
<StatsCard
label="Bandwidth Saved"
value={formatBytes(stats.bandwidth_saved_30d)}
sub="last 30 days"
/>
</div>
{health && (