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

Math Expression in the Grafana query #30

Open
cyb0 opened this issue Jul 15, 2019 · 1 comment
Open

Math Expression in the Grafana query #30

cyb0 opened this issue Jul 15, 2019 · 1 comment

Comments

@cyb0
Copy link

cyb0 commented Jul 15, 2019

Hello,

Is there an easy way to add a math expression to the select query in the template? I cannot find such a function in the code.

For example here is one of my InfluxDB queries from Grafana:

SELECT mean("value") *8 AS "Download Rate" FROM "metrics" WHERE ("host" = 'default-host' AND "service" = 'bandwidth AND "command" = 'check_bandwidth AND "performanceLabel" = 'iso.3.6.1.2.1.31.1.1.1.6.4') AND $timeFilter GROUP BY time($__interval) fill(null)

How to express that value multiplication "*8" in the above query in the template?

Thank you!

Regards,
cyb0x

@dan-m-joh
Copy link

Hello cyb0,

Did you ever figure this out?
I have asked my the same question...

Regards,
D/\N

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

2 participants