I don't think there's a way to do that in the current query language. It
would really be something like:
select difference("value") / value from measurement where "tag"='tag_value'
DIFFERENCE calculates the difference between successive field values, but
there's no way to also reference the current field value in the same query.
That's mixing aggregation functions with raw points, which is not allowed.
I encourage you to open a feature request
<https://github.com/influxdata/influxdb/issues/new>, as I don't see an open
issue that appears to fit this use case.
On Mon, Jul 11, 2016 at 1:01 PM, <[email protected]> wrote:
> I am trying to plot the % change on a measurement. My query in grafana
> looks like this currently.
>
> select difference("value") from measurement where "tag"='tag_value'
>
> Is it possible to modify above query to get % change? It'd be helpful to
> get this in query syntax
>
> Best
> Himanshu
>
> --
> Remember to include the InfluxDB version number with all issue reports
> ---
> You received this message because you are subscribed to the Google Groups
> "InfluxDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/influxdb.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/influxdb/3a1e92d0-1992-45ca-8287-0dad59302eb9%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Sean Beckett
Director of Support and Professional Services
InfluxDB
--
Remember to include the InfluxDB version number with all issue reports
---
You received this message because you are subscribed to the Google Groups
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/CALGqCvMrP-0Lr8stL4m2%2B%2BapyVTTKJWMcUtD2jzE61DZhx%2Biyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.