Skip to content

Label y-axis units on stress-test CPU and inode panels - #69964

Closed
charzl wants to merge 2 commits into
3008.xfrom
fix/69944-stress-panel-unit-labels-3008x
Closed

Label y-axis units on stress-test CPU and inode panels#69964
charzl wants to merge 2 commits into
3008.xfrom
fix/69944-stress-panel-unit-labels-3008x

Conversation

@charzl

@charzl charzl commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Backport of the y-axis unit labeling fix (originally targeting master) to 3008.x.

  • CPU Usage panels (Master, Minion 1-3, API) use Grafana's percentunit (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.
  • 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.

Fixes #69944

Test plan

  • Verified locally that render_panels.py renders y-axis labels for the affected panels

charzl added 2 commits August 5, 2026 15:36
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.
@charzl

charzl commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

Closing -- replacing with a PR from my fork instead of a branch pushed directly to the upstream repo, to match project convention.

@charzl charzl closed this Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants