Averaging angle

that is some heavy duty math so probably worth doing it outside of grafana. I can think of 2 options

  1. create for example a python script that has rich set of math libraries and do your calculation and persist the results into another bucket
  2. create a rest api based on python that given certain parameters, queries your influxdb, does the math and returns the calculated values.
1 Like

Got it. I would say that’s InfluxDB issue: Mean of circular quantities · Issue #18388 · influxdata/influxdb · GitHub

In theory you may fork Grafana and create custom transformation for it. But I would say it will be terrible solution from the performance perspective if you have many datapoints. I would rather use another TSDB supported by Grafana, which support this kind of math natively.

Thanks,
that’s the same subject, i’m gonna look at it.