File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ local cpuUsage =
5555 be set up. If the panels show no data, then please try selecting another time range where usage was active.
5656 |||
5757 )
58- + ts.standardOptions.withUnit('percentunit ' )
58+ + ts.standardOptions.withUnit('sishort ' )
5959 + ts.queryOptions.withTargets([
6060 prometheus.new(
6161 '$PROMETHEUS_DS' ,
@@ -161,7 +161,7 @@ local cpuRequests =
161161 be set up. If the panels show no data, then please try selecting another time range where usage was active.
162162 |||
163163 )
164- + ts.standardOptions.withUnit('percentunit ' )
164+ + ts.standardOptions.withUnit('sishort ' )
165165 + ts.queryOptions.withTargets([
166166 prometheus.new(
167167 '$PROMETHEUS_DS' ,
Original file line number Diff line number Diff line change @@ -159,6 +159,5 @@ local prometheus = grafonnet.query.prometheus;
159159 irate(container_cpu_usage_seconds_total{name!=""}[5m])
160160 ||| ,
161161 )
162- + ts.standardOptions.withDecimals(1 )
163- + ts.standardOptions.withUnit('percentunit' ),
162+ + ts.standardOptions.withUnit('sishort' ),
164163}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ local cpuUsage =
4040 Per user CPU usage
4141 |||
4242 )
43- + ts.standardOptions.withUnit('percentunit ' )
43+ + ts.standardOptions.withUnit('sishort ' )
4444 + ts.queryOptions.withTargets([
4545 prometheus.new(
4646 '$PROMETHEUS_DS' ,
@@ -129,7 +129,7 @@ local cpuRequests =
129129 Per user CPU requests
130130 |||
131131 )
132- + ts.standardOptions.withUnit('percentunit ' )
132+ + ts.standardOptions.withUnit('sishort ' )
133133 + ts.queryOptions.withTargets([
134134 prometheus.new(
135135 '$PROMETHEUS_DS' ,
You can’t perform that action at this time.
0 commit comments