Skip to content

Comments

feat(node-resources): improve chart formatting and adapt to backend label changes#424

Open
samcm wants to merge 1 commit intomasterfrom
samcm/fix-node-p2p-labels
Open

feat(node-resources): improve chart formatting and adapt to backend label changes#424
samcm wants to merge 1 commit intomasterfrom
samcm/fix-node-p2p-labels

Conversation

@samcm
Copy link
Member

@samcm samcm commented Feb 16, 2026

Summary

  • Generic port label formatter handles any snake_case label (el_p2p, cl_p2p, etc.) without hardcoding
  • Auto-scaling byte units (KB → MB → GB) based on data magnitude
  • Adaptive precision formatting prevents duplicate y-axis labels
  • Default memory metric changed to rss_anon (heap memory indicator)
  • New shared utils.ts provides consistent formatting across all resource charts

…abel changes

- Add generic port label formatter to handle any snake_case label (el_p2p, cl_p2p, etc.)
- Implement auto-scaling byte units (KB → MB → GB) across all resource charts
- Add adaptive precision formatting to prevent duplicate y-axis labels
- Change default memory metric from vm_rss to rss_anon (more useful heap indicator)
- Create shared utils.ts with getByteScale, formatScaled, formatPercent, and seriesMax
- Apply consistent formatting across CPU, Memory, Disk I/O, and Network I/O charts
@samcm samcm requested a review from Savid as a code owner February 16, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants