alerting-dashboards-plugin
alerting-dashboards-plugin copied to clipboard
Unable to add trigger to an alerting monitor for Monitor defining method as "anomaly detector"
What is the bug? I cannot create a trigger for my alert monitor configured for the anomaly detector. It tells me that "No features have been added to this anomaly detector," but per the screenshots provided here, I do have one configured. In my debugging so far, it seems this log line in the dashboard pod could be the reason statusCode":400,"req":{"url":"/api/alerting/detectors/6wlts5QBQ09GuqQB4YyT/results?startTime=1737573868672&endTime=1738178668672&preview=true" as it's logged every time I click to add a trigger on the screen.
How can one reproduce the bug?
- Have a anomaly detector configured with a feature enabled
- Try to create a alerting monitor and choose anomaly detector as montitor defined method.
- Click on add trigger and the message come on the ui stating "No features have been added to this anomaly detector" and dashboard logs has that 400 http status get request.
What is the expected behavior? It should let me add the trigger condition based on the feature I've in the anomaly detector. What is your host/environment?
- Linux
- OpenSearch - 2.18
- Plugins - Anomaly and alerting
Do you have any screenshots?
Do you have any additional context? Add any other context about the problem.