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

Meta queries in terms of Arithmetic operation doesn't work in grafana 8.0.6 #136

Open
BhoomikaAnghan opened this issue Aug 5, 2021 · 2 comments

Comments

@BhoomikaAnghan
Copy link

I am using Elasticsearch(oracle hist as named in image) data source and I want to do some Arithmetic operations (like sqrt or power(exponent)) on Metric field from Query A. I have installed a meta queries data source plugin and I am able to do basic arithmetic functions like (+,*,-,/) but it didn't work for getting sqrt or exponent. It is always returning 0 for sqrt. I have tried to use exponent(25^0.5) for getting sqrt but it doesn't work. Can anyone please suggest to me the right way to do it? I am not sure about this. Is it an issue with the plugin or I am doing something wrong? I could not get any information through the readme file for using this kind of operation from this plugin.
expression

@drasticElastic
Copy link

I am using an older version of Grafana, but was able to use more advanced Javascript math functions like square root (sqrt) and absolute value (abs) by appending Math.. For example, Math.sqrt(A['queryAlias']). Hope that helps.

@asaf400
Copy link

asaf400 commented Feb 6, 2023

#155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants