Skip to content

feat(agent): tune bucket ranges for download performance histograms#600

Merged
Anton-Kalpakchiev merged 2 commits into
masterfrom
add-xxs-blob-size-tag
Apr 16, 2026
Merged

feat(agent): tune bucket ranges for download performance histograms#600
Anton-Kalpakchiev merged 2 commits into
masterfrom
add-xxs-blob-size-tag

Conversation

@Anton-Kalpakchiev
Copy link
Copy Markdown
Collaborator

When emiting latency and throughput metrics for its torrent downloads, the agent tags them by the size category of the blob. This allows us to then query latency/throughput performance for a specific blob size category if we'd like. This PR changes the boundaries of these buckets to gain more actionable data from the metrics.

Before this PR, the smallest category was xsmall - 0B-100MiB. I am adding a 0B-5MiB category and merging the 1GiB-2GiB and 2GiB-5GiB categories together. The reason is that there are a lot of blobs <5MiB (mostly image manifests) and I'd like to get metrics specifically isolated for them, as the overhead of starting a P2P download is more significant on a <1MiB blob compared to a 1GiB blob.

After looking at the other buckets, I decided there's no real reason to keep metrics on 1-2GB blobs separate from 2-5GB blobs, so I decided to merge those buckets for simplicity and to reduce metric ingestion/cardinality rates.

@Anton-Kalpakchiev Anton-Kalpakchiev merged commit 4c22072 into master Apr 16, 2026
9 checks passed
@Anton-Kalpakchiev Anton-Kalpakchiev deleted the add-xxs-blob-size-tag branch April 16, 2026 19:14
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