diff --git a/data/grafana/flux.mako b/data/grafana/flux.mako index 291577e..48dc8ee 100644 --- a/data/grafana/flux.mako +++ b/data/grafana/flux.mako @@ -5,7 +5,7 @@ from(bucket: "${bucket}") |> filter(fn: (r) => ${' or '.join(f'r["{key}"] == "{value}"' for value in values)}) % endfor % if function == 'derivative': - |> derivative() + |> derivative(nonNegative: true) % endif % if negative: |> map(fn: (r) => ({r with _value: r._value * - 1.0}))