Skip to content

atelet: count image cache GC passes by outcome - #3829

Open
igooch wants to merge 1 commit into
agent-substrate:mainfrom
igooch:imagecache-gc-passes
Open

igooch wants to merge 1 commit into
agent-substrate:mainfrom
igooch:imagecache-gc-passes

Conversation

@igooch

@igooch igooch commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Part of #3782.

The image cache GC logs each pass but emits no metric. This adds ate.imagecache.gc.passes, a counter by ate.imagecache.gc.outcome: complete, shortfall, skipped or quiet. Unlike ate.filecache.gc.passes, quiet passes count too, and so do the early exits when atelet can't measure the volume or the cache, so a count that stops rising means the collector stopped.

The registry, the observability guide and the image cache blind spot in docs/metrics/substrate.yaml are updated. The pool size, the next item in #3782, comes in a separate PR.

AI use: AI-assisted. Claude Code wrote the change and ran it on a GKE cluster. I reviewed it.

  • Tests pass
  • Docs updated

The image cache GC logged each pass but emitted no metric, so nobody
could see whether it ran or why it fell short. Add
ate.imagecache.gc.passes, labeled complete, shortfall, skipped or
quiet. Quiet passes and the early skips count too, so a count that
stops rising means the GC stopped.

Signed-off-by: Ivy <igooch@google.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant