bundles/grafana: fix derivative for wireguard last handshake time
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-08-07 23:32:39 +02:00
parent 36de4f0c58
commit c14bb43993
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -67,7 +67,7 @@ def dashboard_row_wireguard(panel_id, node):
_value: r._value / 1000000000
}})
)
|> derivative(unit: 1s)
|> derivative(unit: 1s, nonNegative: true)
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "last_handshake_time_ns")""",
'resultFormat': 'time_series',