Label y-axis units on stress-test CPU and inode panels - #69964
Closed
charzl wants to merge 2 commits into
Closed
Conversation
Fixes #69944 The CPU Usage panels (Master, Minion 1-3, API) use Grafana's percentunit, a 0-1 ratio where 1.0 == 1 full CPU core -- matching rate(container_cpu_usage_seconds_total[...]) semantics from cAdvisor. Without a label, a value like 1.2 is easy to misread as "1.2% of the host" rather than 1.2 CPU cores. The Minion Inodes panels use Grafana's "short" unit (a plain count) and also had no y-axis label. render_panels.py already special-cases bytes-family units to convert to MB and label the axis; this follows the same pattern for percentunit and short so every rendered panel states what its numbers mean.
.cursor-ai/ was accidentally picked up while preparing this branch and is unrelated to the y-axis label fix.
Collaborator
Author
|
Closing -- replacing with a PR from my fork instead of a branch pushed directly to the upstream repo, to match project convention. |
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.
Summary
Backport of the y-axis unit labeling fix (originally targeting
master) to3008.x.percentunit(0-1 ratio where 1.0 == 1 full CPU core, matchingrate(container_cpu_usage_seconds_total[...])semantics from cAdvisor). Without a label, a value like 1.2 is easy to misread as "1.2% of the host" rather than 1.2 CPU cores.shortunit (a plain count) and also had no y-axis label.render_panels.pyalready special-cases bytes-family units to convert to MB and label the axis; this follows the same pattern forpercentunitandshortso every rendered panel states what its numbers mean.Fixes #69944
Test plan
render_panels.pyrenders y-axis labels for the affected panels