From e5e02ec35fa27478dfd601d3e186de7f8a43b6b9 Mon Sep 17 00:00:00 2001 From: Ryan Geyer Date: Thu, 25 Apr 2024 12:47:50 -0700 Subject: [PATCH] Re-add capacity indication --- dashboards/resources/node.libsonnet | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dashboards/resources/node.libsonnet b/dashboards/resources/node.libsonnet index 6060d0446..806cb2bde 100644 --- a/dashboards/resources/node.libsonnet +++ b/dashboards/resources/node.libsonnet @@ -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] }), ]), @@ -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] }), ]),