Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minVal configuration script_metric #5401

Open
srout60 opened this issue Oct 26, 2023 · 2 comments
Open

minVal configuration script_metric #5401

srout60 opened this issue Oct 26, 2023 · 2 comments
Labels
2 - In progress Issue/PR: The issue or PR is in progress. needs-more-info

Comments

@srout60
Copy link

srout60 commented Oct 26, 2023

How single script works in opensearch ?
I have this single script in elastic and planning to use in opensearch but its not working. also, if i use in metric_script, not sure the exacts configuration in script_metric.
In Elastic:
"response_time_min": {
"min": {
"script": "doc['metric_type.keyword'].value == 'Average Response Time (ms)' ? doc['minVal'].value/1000 : 0"
}
},

@hdhalter
Copy link
Contributor

hdhalter commented Nov 7, 2023

@macohen - Do you know why this might not be working?

@macohen
Copy link
Contributor

macohen commented Nov 7, 2023

@srout60 can you let us know what version of Elastic and what version of OpenSearch you're using?

@hdhalter hdhalter added 2 - In progress Issue/PR: The issue or PR is in progress. and removed untriaged labels Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - In progress Issue/PR: The issue or PR is in progress. needs-more-info
Projects
None yet
Development

No branches or pull requests

3 participants