Skip to content

Commit

Permalink
Merge pull request #128 from wobcom/main
Browse files Browse the repository at this point in the history
fix dashboardDisplay.minInterval option
  • Loading branch information
fionera authored Jul 17, 2023
2 parents af1f83e + fe136d8 commit 7063169
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 7063169

Please sign in to comment.