opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.69k stars 894 forks source link

[BUG][OpenSearch Plugins] script_exception Runtime Error When Previewing Trigger Condition in Per Cluster Metrics Monitor #8622

Closed getsolaris closed 3 weeks ago

getsolaris commented 1 month ago

Describe the bug When creating a Per Cluster Metrics Monitor in the OpenSearch Plugins tab, selecting "Nodes stats" as the request type and clicking on "Preview condition response" after setting the trigger results in a script_exception runtime error.

To Reproduce Steps to reproduce the behavior:

  1. Go to OpenSearch Dashboards.
  2. Navigate to the "Plugins" tab and click on "Create Monitor."
  3. Select "Per Cluster Metrics Monitor" as the monitor type.
  4. For the query request type, choose "Nodes stats."
  5. Click on "Preview query" to check the query response.
  6. Set a trigger and leave the "Trigger condition" as default.
  7. Click on "Preview condition response."
  8. See the script_exception runtime error.

Expected behavior The trigger condition preview should return a valid response without throwing a script_exception runtime error.

OpenSearch Version OpenSearch 2.15 (OpenSearch_2_15_R20240904-P2)

Dashboards Version v 2.15.0

Plugins Please list all plugins currently enabled.

Screenshots Screenshot 2024-10-17 at 6 01 57 PM

Host/Environment (please complete the following information):

Additional context This error only occurs when trying to preview the trigger condition. Query preview works as expected, and the error appears during the preview of the trigger condition response.

zhyuanqi commented 3 weeks ago

This belongs to alerting plugin. Reroute it to alerting.

zhyuanqi commented 3 weeks ago

@opensearch-project/plugins could you please transfer to the right repo?

getsolaris commented 3 weeks ago

@zhyuanqi thank you

getsolaris commented 3 weeks ago

https://github.com/opensearch-project/notifications/issues/978