Multi-timeseries operations in Grafana

staticfloat picture staticfloat · May 3, 2015 · Viewed 22.3k times · Source

How do I subtract two timeseries in Grafana? Or add two together, divide one by another, etc...? I have found vague hints online about taking differences between timeseries, but nothing that actually tells me how to do so. I'm using Grafana v2.0.2 with Influxdb v0.8 and have played around with the graph controls enough to discover things like the difference operator I can apply, but I have no idea how to use it. I've attempted to find documentation on this, but the closest I can find is pretty much silent on this topic, and also looks to be slightly out of date, as the interface has changed since those screenshots were taken.

Thanks!

Answer

XFMoulet picture XFMoulet · May 7, 2015

This feature has been added as issue 177 of Grafana:

Setup two series, click the eye icon to hide them and put a third with the division of the preceding ones.

grafana - graphite queries

This is only working in Graphite (I'd like it to work on influx badly also)