Skip to content

Commit

Permalink
Re-add capacity indication
Browse files Browse the repository at this point in the history
  • Loading branch information
rgeyer committed Apr 25, 2024
1 parent 3ca17b4 commit e5e02ec
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions dashboards/resources/node.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ local var = g.dashboard.variable;
+ timeSeries.standardOptions.color.withFixedColor('red')
)
+ fieldOverride.byName.withProperty('custom.stacking', { mode: 'none' })
// This effectively "hides" max capacity from the panel. It shows only in the legend, showing the max capacity. In the "legacy" graph panel
// the max capacity could be reselected and thus shown on the timeseries with a dotted line. This is no longer possible.
+ fieldOverride.byName.withProperty('custom.hideFrom', { tooltip: true, viz: true, legend: false })
+ fieldOverride.byName.withProperty('custom.hideFrom', { tooltip: true, viz: false, legend: false })
+ fieldOverride.byName.withProperty('custom.lineStyle', { fill: 'dash', dash: [10, 10] }),
]),

Expand Down Expand Up @@ -200,9 +198,7 @@ local var = g.dashboard.variable;
+ timeSeries.standardOptions.color.withFixedColor('red')
)
+ fieldOverride.byName.withProperty('custom.stacking', { mode: 'none' })
// This effectively "hides" max capacity from the panel. It shows only in the legend, showing the max capacity. In the "legacy" graph panel
// the max capacity could be reselected and thus shown on the timeseries with a dotted line. This is no longer possible.
+ fieldOverride.byName.withProperty('custom.hideFrom', { tooltip: true, viz: true, legend: false })
+ fieldOverride.byName.withProperty('custom.hideFrom', { tooltip: true, viz: false, legend: false })
+ fieldOverride.byName.withProperty('custom.lineStyle', { fill: 'dash', dash: [10, 10] }),
]),

Expand Down

0 comments on commit e5e02ec

Please sign in to comment.