bundles/grafana: fix missing derivative() in dovecot row
This commit is contained in:
parent
0bc84e596e
commit
4cb89d699c
1 changed files with 2 additions and 0 deletions
|
@ -168,6 +168,7 @@ def dashboard_row_dovecot(panel_id, node):
|
||||||
r["_field"] == "read_bytes" and
|
r["_field"] == "read_bytes" and
|
||||||
r["host"] == "{node.name}"
|
r["host"] == "{node.name}"
|
||||||
)
|
)
|
||||||
|
|> derivative(unit: 1s)
|
||||||
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|
||||||
|> yield(name: "read")""",
|
|> yield(name: "read")""",
|
||||||
'resultFormat': 'time_series',
|
'resultFormat': 'time_series',
|
||||||
|
@ -196,6 +197,7 @@ def dashboard_row_dovecot(panel_id, node):
|
||||||
_value: r._value * -1
|
_value: r._value * -1
|
||||||
}})
|
}})
|
||||||
)
|
)
|
||||||
|
|> derivative(unit: 1s)
|
||||||
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|
||||||
|> yield(name: "write")""",
|
|> yield(name: "write")""",
|
||||||
'resultFormat': 'time_series',
|
'resultFormat': 'time_series',
|
||||||
|
|
Loading…
Reference in a new issue