bundles/grafana: add "traffic per interface" graphs, fix naming of values
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-05-02 15:01:22 +02:00
parent 0f387102b3
commit fe668fd5d4
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 616 additions and 292 deletions

View file

@ -24,6 +24,11 @@ def dashboard_row_cpu(panel_id, node):
r["_field"] == "usage_{measurement}" and
r["host"] == "{node.name}"
)
|> map(fn: (r) => ({{
r with
_field: "{measurement}"
}})
)
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "{measurement}")""",
'resultFormat': 'time_series',