The 'Show in Inventory' button in 'Machine Learning anomaly detection' doesn't work when clicked. It throws errors in console indicating that some context providers are missing. However, when correct context providers are added, it doesn't fix the button. Possibly a different approach needs to be used to display k8s pod in Inventory visualization.
Steps to reproduce
Precondition: ML jobs for k8s anomalies detection must be enabled
Go to Infrastructure -> Inventory
Click 'Anomaly Detection' in the page header
Select 'Anomalies' tab
Select 'Kubernetes Pods' from dropdown
In anomaly row, open dropdown by clicking 'three dots' and click 'Show in Inventory' button
Summary
The 'Show in Inventory' button in 'Machine Learning anomaly detection' doesn't work when clicked. It throws errors in console indicating that some context providers are missing. However, when correct context providers are added, it doesn't fix the button. Possibly a different approach needs to be used to display k8s pod in Inventory visualization.
Steps to reproduce
Precondition: ML jobs for k8s anomalies detection must be enabled