-
Notifications
You must be signed in to change notification settings - Fork 24
fix: io stalls query #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: io stalls query #240
Conversation
2c97fc1
to
4c7b8d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this change. I see some of the metrics were removed from testdata files, could you please add those metrics back and fix the regex in unit test such that these metrics get populated correctly?
src/testdata/azureSQLDatabaseMetricsWithoutMemoryMetrics.json.golden
Outdated
Show resolved
Hide resolved
5c434b8
to
55c8b6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR corrects the IO stall calculation in the database performance query.
The previous implementation incorrectly added io_stall_write_ms (milliseconds) and num_of_writes (count), which mixed incompatible units and produced meaningless results.
The fix uses SUM(io_stall) instead, which properly measures total I/O wait time in consistent millisecond units. The io_stall column already aggregates all I/O stall time (reads and writes) and provides an accurate measure of I/O performance impact