alerting-dashboards-plugin icon indicating copy to clipboard operation
alerting-dashboards-plugin copied to clipboard

Unable to add trigger to an alerting monitor for Monitor defining method as "anomaly detector"

Open sonu1311 opened this issue 9 months ago • 10 comments

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?

  1. Have a anomaly detector configured with a feature enabled
  2. Try to create a alerting monitor and choose anomaly detector as montitor defined method.
  3. 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?

Image

Image

Do you have any additional context? Add any other context about the problem.

sonu1311 avatar Jan 29 '25 20:01 sonu1311