elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.62k stars 8.22k forks source link

[ML] Single Metric Viewer: Only show anomalous 'by' field values for selected 'partition' field value #171932

Closed peteharverson closed 1 month ago

peteharverson commented 11 months ago

For anomaly detection jobs with both a by field and a partition field, the 'by' field dropdown in the Single Metric Viewer currently displays values across all partition field values. This can make exploring results in the view difficult as there is no indication of which combination of partition and by field values have results, with an invalid combination giving no results:

image

The values in the (third) by field dropdown should be filtered to only display values for the selected value in the (second) partition field dropdown.

elasticmachine commented 11 months ago

Pinging @elastic/ml-ui (:ml)

peteharverson commented 11 months ago

We need to pass the selected partition field value in https://github.com/elastic/kibana/blob/main/x-pack/plugins/ml/public/application/timeseriesexplorer/components/series_controls/series_controls.tsx#L163