From 4cb89d699c56bfa2d8751a058a8a2757b80af442 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 21 Aug 2021 08:39:39 +0200 Subject: [PATCH] bundles/grafana: fix missing derivative() in dovecot row --- bundles/grafana/dashboard-rows/dovecot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/grafana/dashboard-rows/dovecot.py b/bundles/grafana/dashboard-rows/dovecot.py index abc0af1..64405b7 100644 --- a/bundles/grafana/dashboard-rows/dovecot.py +++ b/bundles/grafana/dashboard-rows/dovecot.py @@ -168,6 +168,7 @@ def dashboard_row_dovecot(panel_id, node): r["_field"] == "read_bytes" and r["host"] == "{node.name}" ) + |> derivative(unit: 1s) |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false) |> yield(name: "read")""", 'resultFormat': 'time_series', @@ -196,6 +197,7 @@ def dashboard_row_dovecot(panel_id, node): _value: r._value * -1 }}) ) + |> derivative(unit: 1s) |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false) |> yield(name: "write")""", 'resultFormat': 'time_series',