-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Extend population preview chart to show actual and typical value #67569
[ML] Extend population preview chart to show actual and typical value #67569
Conversation
…s as well in focusData
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.
I used yScaleDomainMin < 0 ? yScaleDomainMin : 0
here because I wasn't sure if we should always expect the data set to have positive values.
Gave this a good test using a range of population jobs on apache2, nginx and the gallery data sets, and generally the change to the way the y axis range is calculated is working well - a big improvement when the anomaly @qn895 @walterra I wonder if there is anything we can do to improve the sampling used to plot the background population of gray dots? The example shown above for the 'Fixed' case looks good, in that you see a lot of gray dots around the Note though that this fix is a big step forward from the current behavior: |
Looking at your screenshots, I think it's way better than before, where charts for unusual low value didn't show enough context. |
@pheyos (correct me if I'm wrong @qn895 !) the new calculation for the max is now doing |
Did some local tests, and I think it's a nice improvement and a quick win. We can think of and do additional improvements, but I'd vote for doing those in follow-ups. (Anything that would touch how we query the data is more peculiar for example, because they are already quite heavy). |
if (limits.max === limits.min) { | ||
const padding = limits.max * 0.05; | ||
limits.max += padding; | ||
limits.min -= padding; |
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.
Do we need a check here to not push the limit below 0
for detectors based on count
for example where we can be sure there will never be a value below 0
and we don't want to push the axis domain below 0
?
9e83878
to
1f1974b
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.
I added an extra item to the population chart meta issue #18428 for investigating if we can improve the sampling of the population used to draw the background gray dots.
Pinging @elastic/ml-ui (:ml) |
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.
Latest changes LGTM
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / kibana-oss-agent / Firefox UI Functional Tests.test/functional/apps/home/_home·js.homepage app Kibana takes you home clicking on kibana logo should take you to home pageStandard Out
Stack Trace
History
To update your PR or re-run it, just comment with: |
…ms-column * 'master' of github.com:elastic/kibana: (63 commits) remove scripts. prettire update has been done (elastic#68130) Closes elastic#68055 by detecting the local Kibana version and using that as (elastic#68198) [apm] docs: add deployment annotation example (elastic#67408) [ML] Extend population preview chart to show actual and typical value (elastic#67569) Refactor index management client integration tests for scalability (elastic#67917) Add generator function that creates multiple alerts (elastic#67713) chore(NA): remove config arg from os packages (elastic#67871) [Reporting] Move code out of Legacy (elastic#67904) [Metrics UI] Add overrides to Snapshot API to support alert previews (elastic#68125) [Security] [Cases] Manage timeline UI API (elastic#67719) [ENDPOINT][INGEST]Task/endpoint ingest update (elastic#67234) Fix code coverage for jest, upload merged reports (elastic#68149) Update documentation/examples of deprecated namespaceAgnostic field (elastic#68039) [DOCS] Updates Canvas docs with new menus (elastic#66061) chore(NA): avoids imports of server or public code into common (elastic#67231) [SIEM] Fix GetOneTimeline graphql type (elastic#68137) skip flaky suite (elastic#67838) [Uptime] Add loading message for monitor list no items (elastic#67378) [Ingest Manager] Update indexing strategy docs to use dataset.* (elastic#68068) [Ingest Manager] Fix datasource validation for streams without vars (elastic#67950) ... # Conflicts: # x-pack/plugins/index_management/__jest__/client_integration/helpers/index.ts # x-pack/plugins/index_management/__jest__/client_integration/home.test.ts # x-pack/plugins/index_management/__jest__/client_integration/home/index_templates_tab.helpers.ts
* master: (26 commits) [Console]remove completion for type for filter queries and aggs (elastic#68103) [ML] Transforms: Filter aggregation support (elastic#67591) [ES UI Shared] Monaco XJSON (elastic#67485) [Index Management] Add data streams functionality to indices tab (elastic#67940) [Discover] Fix renaming of saved search not displayed in breadcrumb (elastic#67577) [SECURITY] Rename siem plugin to security_solution (elastic#67902) [Uptime] Fix Telemetry Api flaky test (elastic#67358) [Data plugin] Add configuration property to enable / disable autocomplete (elastic#67847) remove scripts. prettire update has been done (elastic#68130) Closes elastic#68055 by detecting the local Kibana version and using that as (elastic#68198) [apm] docs: add deployment annotation example (elastic#67408) [ML] Extend population preview chart to show actual and typical value (elastic#67569) Refactor index management client integration tests for scalability (elastic#67917) Add generator function that creates multiple alerts (elastic#67713) chore(NA): remove config arg from os packages (elastic#67871) [Reporting] Move code out of Legacy (elastic#67904) [Metrics UI] Add overrides to Snapshot API to support alert previews (elastic#68125) [Security] [Cases] Manage timeline UI API (elastic#67719) [ENDPOINT][INGEST]Task/endpoint ingest update (elastic#67234) Fix code coverage for jest, upload merged reports (elastic#68149) ...
…elastic#67569) Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
This PR addresses #33490 extends the y axis domain to the population preview chart to also account for the anomaly actual and typical, not just the data.
This makes it easier to contextualize anomalies where markers look to be in the same range as other data points, but its typical value is actually much higher. I ran this for
focusData
insideOriginal (red dot doesn't seem so anomalous)
Fixed
Originally I tried setting it based on the chart's whole range instead of just the highlighted data and they looked quite off.
Checklist
Delete any items that are not applicable to this PR.