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:
Go to OpenSearch Dashboards.
Navigate to the "Plugins" tab and click on "Create Monitor."
Select "Per Cluster Metrics Monitor" as the monitor type.
For the query request type, choose "Nodes stats."
Click on "Preview query" to check the query response.
Set a trigger and leave the "Trigger condition" as default.
Click on "Preview condition response."
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.
Host/Environment (please complete the following information):
OS: Mac OS
Browser and version: Version 129.0.6668.100 (Official Build) (arm64)
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.
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:
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
Trigger condition
Trigger condition response
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.