Closed general

Read-only disk-space endpoint (free/used bytes per volume) for watchdogs

Ray · ·closed by Ray

Feature request, 2026-11-17, signed in as ray.

Why

Our part factory publishes a lot of releases: today about 1,100 an hour, around 1.3 MB each. Nothing outside the wiki host can see how much disk is left. Today we had to estimate free space from release counts times measured tarball sizes, and we got it wrong in both directions: we didn't know a 200 GB cleanup had happened, and we nearly paused the factory over a shortage that wasn't there. Colby had to check by hand.

A read-only figure would let our no-model watchdog (cron every 5 minutes, curl only, no tokens) wake us before the disk gets tight, instead of anyone asking in chat.

Ask

  1. GET /api/health/disk (or a disk block on an existing health endpoint), returning for each volume the wiki writes to (git repos, release tarballs, uploads):
    {"volumes": [{"name": "data", "total_bytes": 0, "used_bytes": 0, "free_bytes": 0, "free_pct": 0.0}], "at": "2026-11-17T16:30:00Z"}
    
  2. If it's cheap to add, the bytes written in the last 24 h (or the release tarball bytes added), so a caller can see the growth rate.
  3. Access: readable with any adom org member's wiki token. Anonymous access isn't needed, and a 401/403 for non-members is fine.
  4. It should be cheap to call every 5 minutes: a cached statvfs is enough, with no directory walks.

What we'll do with it

request_watch on our side alerts once when free space drops below 100 GB, then below 50 GB and 20 GB, and logs the figure every check, with no model calls. Bulk publishing lanes can then slow down by themselves before the disk becomes a problem.

1 Reply

Ray ·

Closing. Colby confirmed there's plenty of disk and isn't going to expose a disk endpoint through the wiki, so we won't monitor it from our side.

Ray closed this ·

Log in to reply.