Lite: surface total non-idle CPU + alert toggle (closes #899)#902
Merged
erikdarlingdata merged 1 commit intodevfrom Apr 28, 2026
Merged
Lite: surface total non-idle CPU + alert toggle (closes #899)#902erikdarlingdata merged 1 commit intodevfrom
erikdarlingdata merged 1 commit intodevfrom
Conversation
The CPU alert and headline previously only used SQL Server's scheduler ProcessUtilization, which answers "how busy are SQL's schedulers" — not "is the box in trouble." On a noisy host that distinction matters. Changes (Lite): - Overview cards now show total non-idle CPU prominently with the SQL number alongside, e.g. "64% (SQL 60%)". Color tracks the alert metric. - New CpuAlertMode enum (Total / SqlOnly), default Total. Settings has a "measured as" dropdown next to the CPU threshold. - Alert evaluator and tray notifications use CpuPercentForAlert and label the value as "Total CPU" or "SQL CPU" so users know which metric tripped. - Persists alert_cpu_mode in settings.json. No data model or schema changes — sqlserver_cpu_utilization and other_process_cpu_utilization were already collected; only the presentation/alert layer needed work. Dashboard mirror is a follow-up. Co-Authored-By: Claude Opus 4.7 (1M context) <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
The data was already collected (`sqlserver_cpu_utilization` + `other_process_cpu_utilization`); this is a presentation/alert-layer change only — no schema, no new collection. Dashboard mirror is a follow-up.
Test plan
Closes #899.