Export cache, eviction, upstream and transform metrics (closes #85)
check / check (push) Canceled after 0s

New pixa_ metrics, none with labels:
- source cache hits and misses, counted once per variant made or checked
- cache usage and limit gauges; usage is set each time eviction reads it
- eviction count and bytes, from the size_bytes the deleted row returns
- upstream fetch duration histogram and fetch error counter
- transform duration histogram and an in-progress gauge, both including
  the wait for a processing slot

Removing a damaged file during reconciliation is not counted as an
eviction. README lists every metric; the metrics config comment now says
the pixa_ metrics are measured whether or not /metrics is served.

Model: opus-5-5
This commit is contained in:
sneak committed 2026-11-11 14:06:28 +00:00
1 parent fe5bf393b1
commit 7014d88956
9 files changed
+314 -113

No files matched your search

-7
View File
@@ -27,12 +27,5 @@ P2: security: per-origin rate limiting
- P2: HTTP response handling
- Last-Modified headers
- P2: operational
- Prometheus metrics still missing:
- cache hits and misses, split into source images and variants
- cache size on disk and its limit
- evictions and the bytes they free
- upstream fetch duration and errors
- transcode duration
- images in processing
- measure the 1k to 5k req/s target with `script/loadtest` on a machine not
shared with other work