From fe136d8e09adfb4d5f2ba7c47e53bda9b3c2bd69 Mon Sep 17 00:00:00 2001 From: Yureka Date: Thu, 13 Jul 2023 18:42:14 +0200 Subject: [PATCH] fix dashboardDisplay.minInterval option --- deploy/dashboards/base.cue | 3 ++- deploy/single-node/defs.cue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/dashboards/base.cue b/deploy/dashboards/base.cue index cae983e..eef46d3 100644 --- a/deploy/dashboards/base.cue +++ b/deploy/dashboards/base.cue @@ -2,7 +2,7 @@ package dashboards #Config: { // Minimum interval for all panels - interval: string | null + minInterval: string | null // Maximum packet size for heatmaps (filter out spurious oversized packet from loopback interfaces) maxPacketSize: uint | *1500 @@ -141,6 +141,7 @@ dashboards: [string]: D={ _panels: [...#Panel] panels: [ for i, v in D._panels { id: i + interval: #Config.minInterval for _, t in #PanelStructs if t.type == v.type { (t & v) } diff --git a/deploy/single-node/defs.cue b/deploy/single-node/defs.cue index be716d5..7ddf5ba 100644 --- a/deploy/single-node/defs.cue +++ b/deploy/single-node/defs.cue @@ -35,7 +35,7 @@ netmeta: config: #NetMetaConfig netmeta: dashboards: { _dashboards: (grafana_dashboards & { #Config: { - interval: netmeta.config.dashboardDisplay.minInterval + minInterval: netmeta.config.dashboardDisplay.minInterval maxPacketSize: netmeta.config.dashboardDisplay.maxPacketSize fastNetMon: netmeta.config.fastNetMon }