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 }