Skip to content

Commit 0779f78

Browse files
committed
Change CPU panels' units from percent to sishort (20% -> 200m)
1 parent 6e107ab commit 0779f78

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

dashboards/group.jsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

dashboards/jupyterhub.libsonnet

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

dashboards/user.jsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)