Skip to content

Commit

Permalink
fix dashboardDisplay.minInterval option
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-re-ka committed Jul 13, 2023
1 parent af1f83e commit fe136d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deploy/dashboards/base.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion deploy/single-node/defs.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fe136d8

Please sign in to comment.