fix: cap telemetry chart Y-axis when outliers distort scale#686
Merged
harp-intel merged 1 commit intomainfrom Apr 10, 2026
Merged
fix: cap telemetry chart Y-axis when outliers distort scale#686harp-intel merged 1 commit intomainfrom
harp-intel merged 1 commit intomainfrom
Conversation
Turbostat and sar telemetry data occasionally contains single readings that are orders of magnitude too high, compressing useful data into a tiny band at the bottom of HTML charts. Add percentile-based outlier detection that sets a hard Y-axis max when the actual maximum exceeds P99 by more than 50%, keeping charts readable while preserving outlier values in tooltips. JSON and XLSX outputs are unaffected. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
computeAxisMax) that sets a hard Chart.js Y-axismaxwhen the actual maximum exceeds P99 by more than 50%telemetryTableHTMLRendererfunction; charts with fixed bounds (e.g., CPU utilization 0-100%) are unaffectedTest plan
computeAxisMaxcovering normal data, outliers, edge cases (8 test cases)make test— all tests passmake check— all quality checks passperfspect telemetryand verify HTML charts render with readable Y-axis scaling when outlier readings are present🤖 Generated with Claude Code