Skip to content

feat(agent): emit download counter for blob download qps#588

Merged
thijmv merged 1 commit intomasterfrom
thijmv/agent-download-qps
Apr 10, 2026
Merged

feat(agent): emit download counter for blob download qps#588
thijmv merged 1 commit intomasterfrom
thijmv/agent-download-qps

Conversation

@thijmv
Copy link
Copy Markdown
Collaborator

@thijmv thijmv commented Apr 10, 2026

This PR adds a download counter to the read-only transferer to improve agent observability by being able to track its download QPS.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@Anton-Kalpakchiev Anton-Kalpakchiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the container runtime downloads an image, it:

  1. downloads the manifest from kraken-agent.
  2. if it's a manifest list (multi-arch manifest), it downloads the arch manifest separately
  3. downloads each image layer of the image

Does this metric track only 3) or does it increase upon 1 and 2? Do we perhaps want a separate metric for 1) and 2) or should we have a combined metric?

@thijmv
Copy link
Copy Markdown
Collaborator Author

thijmv commented Apr 10, 2026

It is placed at the blob level, so it will be triggered for both manifests and layers. By including both, we can obtain a more accurate QPS metric that reflects all blobs being downloaded. WDYT? @Anton-Kalpakchiev

Copy link
Copy Markdown
Collaborator

@Anton-Kalpakchiev Anton-Kalpakchiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good

@thijmv thijmv merged commit 47faf50 into master Apr 10, 2026
9 of 10 checks passed
@thijmv thijmv deleted the thijmv/agent-download-qps branch April 10, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants