Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions dashboards/group.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ local cpuUsage =
|||
Per group CPU usage

The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.

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.

Requires https://github.com/2i2c-org/jupyterhub-groups-exporter to
be set up. If the panels show no data, then please try selecting another time range where usage was active.
|||
)
+ ts.standardOptions.withUnit('percentunit')
+ ts.standardOptions.withUnit('sishort')
+ ts.queryOptions.withTargets([
prometheus.new(
'$PROMETHEUS_DS',
Expand Down Expand Up @@ -205,13 +207,15 @@ local cpuRequests =
|||
Per group CPU requests

The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.

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.

Requires https://github.com/2i2c-org/jupyterhub-groups-exporter to
be set up. If the panels show no data, then please try selecting another time range where usage was active.
|||
)
+ ts.standardOptions.withUnit('percentunit')
+ ts.standardOptions.withUnit('sishort')
+ ts.queryOptions.withTargets([
prometheus.new(
'$PROMETHEUS_DS',
Expand Down
8 changes: 6 additions & 2 deletions dashboards/jupyterhub.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ local prometheus = grafonnet.query.prometheus;
irate(container_cpu_usage_seconds_total{name!=""}[5m])
|||,
)
+ ts.standardOptions.withDecimals(1)
+ ts.standardOptions.withUnit('percentunit'),
+ ts.panelOptions.withDescription(
|||
The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
|||
)
+ ts.standardOptions.withUnit('sishort'),
}
10 changes: 10 additions & 0 deletions dashboards/support.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ local nfsServerCPU =
common.tsOptions
+ common.tsRequestLimitStylingOverrides
+ ts.new('NFS server CPU usage')
+ ts.panelOptions.withDescription(
|||
The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
|||
)
+ ts.standardOptions.withUnit('sishort')
+ ts.queryOptions.withTargets([
prometheus.new(
Expand Down Expand Up @@ -156,6 +161,11 @@ local promServerCPU =
common.tsOptions
+ common.tsRequestLimitStylingOverrides
+ ts.new('Prometheus server CPU usage')
+ ts.panelOptions.withDescription(
|||
The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
|||
)
+ ts.standardOptions.withUnit('sishort')
+ ts.queryOptions.withTargets([
prometheus.new(
Expand Down
8 changes: 6 additions & 2 deletions dashboards/user.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ local cpuUsage =
+ ts.panelOptions.withDescription(
|||
Per user CPU usage

The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
|||
)
+ ts.standardOptions.withUnit('percentunit')
+ ts.standardOptions.withUnit('sishort')
+ ts.queryOptions.withTargets([
prometheus.new(
'$PROMETHEUS_DS',
Expand Down Expand Up @@ -127,9 +129,11 @@ local cpuRequests =
+ ts.panelOptions.withDescription(
|||
Per user CPU requests

The measured unit are CPU cores, and they are written out with SI prefixes, so 100m means 0.1 CPU cores.
|||
)
+ ts.standardOptions.withUnit('percentunit')
+ ts.standardOptions.withUnit('sishort')
+ ts.queryOptions.withTargets([
prometheus.new(
'$PROMETHEUS_DS',
Expand Down