-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[ML] Fixes anomaly charts for rare detectors when model plot is enabled #66075
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] Fixes anomaly charts for rare detectors when model plot is enabled #66075
Conversation
|
Pinging @elastic/ml-ui (:ml) |
💚 Build SucceededTo update your PR or re-run it, just comment with: |
jgowdyelastic
left a comment
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
| 'info_content', | ||
| 'high_info_content', | ||
| 'low_info_content', | ||
| ].includes(functionName) === true); |
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.
this could be converted to use the constants from kibana/x-pack/plugins/ml/common/constants/aggregation_types.ts
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.
Agreed, although will save this for a follow-up as I wanted to keep the code churn in this fix to a minimum. I suspect there are a lot of places in the code where we use hard-coded function names which could be switched to the constants from kibana/x-pack/plugins/ml/common/constants/aggregation_types.ts.
alvarezmelissa87
left a comment
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 ⚡
Summary
Fixes #65080, hiding the charts in the Anomaly Explorer, and the link to the Single Metric Viewer, for
rare by mlcategorydetectors where model plot is enabled. Charting for this combination of detector and model plot is not supported.Also adds an extra check into the Single Metric Viewer, to use the underlying metric data for
raredetectors (when not split bymlcategory) even when model plot is enabled for the job, since model plot results are not generated by the back-end forraredetectors.Note there is existing issue with the entity dropdown(s) in the Single Metric Viewer, which are currently not populated for
raredetectors when model plot is enabled. This will be fixed in a follow-up.Checklist
Fixes #65080