Skip to content

Commit 320a678

Browse files
committed
Add panel descriptions on how non-relative CPU use is measured
1 parent 0779f78 commit 320a678

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

dashboards/group.jsonnet

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ local cpuUsage =
4949
|||
5050
Per group CPU usage
5151
52+
The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
53+
5254
User groups are derived from authenticator managed groups where available, e.g. GitHub teams. If a user is a member of multiple groups, then they will be assigned to the group 'other' by default.
5355
5456
Requires https://github.com/2i2c-org/jupyterhub-groups-exporter to
@@ -155,6 +157,8 @@ local cpuRequests =
155157
|||
156158
Per group CPU requests
157159
160+
The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
161+
158162
User groups are derived from authenticator managed groups where available, e.g. GitHub teams. If a user is a member of multiple groups, then they will be assigned to the group 'other' by default.
159163
160164
Requires https://github.com/2i2c-org/jupyterhub-groups-exporter to

dashboards/jupyterhub.libsonnet

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,10 @@ local prometheus = grafonnet.query.prometheus;
159159
irate(container_cpu_usage_seconds_total{name!=""}[5m])
160160
|||,
161161
)
162+
+ ts.panelOptions.withDescription(
163+
|||
164+
The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
165+
|||
166+
)
162167
+ ts.standardOptions.withUnit('sishort'),
163168
}

dashboards/support.jsonnet

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ local nfsServerCPU =
4646
common.tsOptions
4747
+ common.tsRequestLimitStylingOverrides
4848
+ ts.new('NFS server CPU usage')
49+
+ ts.panelOptions.withDescription(
50+
|||
51+
The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
52+
|||
53+
)
4954
+ ts.standardOptions.withUnit('sishort')
5055
+ ts.queryOptions.withTargets([
5156
prometheus.new(
@@ -156,6 +161,11 @@ local promServerCPU =
156161
common.tsOptions
157162
+ common.tsRequestLimitStylingOverrides
158163
+ ts.new('Prometheus server CPU usage')
164+
+ ts.panelOptions.withDescription(
165+
|||
166+
The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
167+
|||
168+
)
159169
+ ts.standardOptions.withUnit('sishort')
160170
+ ts.queryOptions.withTargets([
161171
prometheus.new(

dashboards/user.jsonnet

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ local cpuUsage =
3838
+ ts.panelOptions.withDescription(
3939
|||
4040
Per user CPU usage
41+
42+
The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
4143
|||
4244
)
4345
+ ts.standardOptions.withUnit('sishort')
@@ -127,6 +129,8 @@ local cpuRequests =
127129
+ ts.panelOptions.withDescription(
128130
|||
129131
Per user CPU requests
132+
133+
The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
130134
|||
131135
)
132136
+ ts.standardOptions.withUnit('sishort')

0 commit comments

Comments
 (0)