@@ -97,7 +97,7 @@ local var = g.dashboard.variable;
9797 barGauge.new('Current Rate of Bytes Received' )
9898 + barGauge.options.withDisplayMode('basic' )
9999 + barGauge.options.withShowUnfilled(false )
100- + barGauge.standardOptions.withUnit('Bps' )
100+ + barGauge.standardOptions.withUnit($._config.units.network )
101101 + barGauge.standardOptions.color.withMode('fixed' )
102102 + barGauge.standardOptions.color.withFixedColor('green' )
103103 + barGauge.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval)
@@ -116,7 +116,7 @@ local var = g.dashboard.variable;
116116 barGauge.new('Current Rate of Bytes Transmitted' )
117117 + barGauge.options.withDisplayMode('basic' )
118118 + barGauge.options.withShowUnfilled(false )
119- + barGauge.standardOptions.withUnit('Bps' )
119+ + barGauge.standardOptions.withUnit($._config.units.network )
120120 + barGauge.standardOptions.color.withMode('fixed' )
121121 + barGauge.standardOptions.color.withFixedColor('green' )
122122 + barGauge.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval)
@@ -135,7 +135,7 @@ local var = g.dashboard.variable;
135135 barGauge.new('Average Rate of Bytes Received' )
136136 + barGauge.options.withDisplayMode('basic' )
137137 + barGauge.options.withShowUnfilled(false )
138- + barGauge.standardOptions.withUnit('Bps' )
138+ + barGauge.standardOptions.withUnit($._config.units.network )
139139 + barGauge.standardOptions.color.withMode('fixed' )
140140 + barGauge.standardOptions.color.withFixedColor('green' )
141141 + barGauge.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval)
@@ -154,7 +154,7 @@ local var = g.dashboard.variable;
154154 barGauge.new('Average Rate of Bytes Transmitted' )
155155 + barGauge.options.withDisplayMode('basic' )
156156 + barGauge.options.withShowUnfilled(false )
157- + barGauge.standardOptions.withUnit('Bps' )
157+ + barGauge.standardOptions.withUnit($._config.units.network )
158158 + barGauge.standardOptions.color.withMode('fixed' )
159159 + barGauge.standardOptions.color.withFixedColor('green' )
160160 + barGauge.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval)
@@ -171,7 +171,7 @@ local var = g.dashboard.variable;
171171 ]),
172172
173173 tsPanel.new('Receive Bandwidth' )
174- + tsPanel.standardOptions.withUnit('binBps' )
174+ + tsPanel.standardOptions.withUnit($._config.units.network )
175175 + tsPanel.queryOptions.withTargets([
176176 prometheus.new(
177177 '${datasource}' ,
@@ -185,7 +185,7 @@ local var = g.dashboard.variable;
185185 ]),
186186
187187 tsPanel.new('Transmit Bandwidth' )
188- + tsPanel.standardOptions.withUnit('binBps' )
188+ + tsPanel.standardOptions.withUnit($._config.units.network )
189189 + tsPanel.queryOptions.withTargets([
190190 prometheus.new(
191191 '${datasource}' ,
0 commit comments