Repository navigation
Fix image pull scenario P50/P90/P99 percentile metrics returning 'no samples' - #1036
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes intermittent "no samples" errors in containerd image pull throughput percentile metrics (P50/P90/P99) during CRI benchmark tests. The root cause is that nodes with cached images produce zero image pull rates, causing divide-by-zero NaN values that break the percentile calculations.
Changes:
- Added filter
and (rate(_count) > 0)to P50, P90, and P99 percentile queries to exclude nodes with no active image pulls - Updated comment to clarify that percentiles are filtered to exclude nodes with no pulls
Vittoria (vittoriasalim)
approved these changes
Jan 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The containerd image pull throughput percentile metrics (P50/P90/P99) intermittently return "no samples" errors during CRI benchmark tests.
Root Cause
When nodes have cached images,
rate(containerd_cri_image_pulling_throughput_count)equals 0, causing a divide-by-zero that produces NaN. Thequantile()function silently drops NaN values, and if too many nodes have NaN, the query fails with "no samples".Fix
Add filter
and (rate(_count) > 0)to exclude nodes with no active pulls from the percentile calculation:Testing
pipeline