diff --git a/data/grafana/flux.mako b/data/grafana/flux.mako index d8ffa5c..6895a3d 100644 --- a/data/grafana/flux.mako +++ b/data/grafana/flux.mako @@ -12,4 +12,5 @@ from(bucket: "${bucket}") % if negative: |> map(fn: (r) => ({r with _value: r._value * - 1.0})) % endif + |> aggregateWindow(every: v.windowPeriod, fn: mean) |> yield(name: "mean")