bundles/grafana: fix missing derivative() in dovecot row

This commit is contained in:
Franzi 2021-08-21 08:39:39 +02:00
parent 0bc84e596e
commit 4cb89d699c
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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',