Skip to content

Commit

Permalink
Adjust definitions for grafonnet v11 changes
Browse files Browse the repository at this point in the history
I found some breaking changes described in
grafana/grafonnet#199, and this adjusts for
those. Before adjusting we got errors, so the breaking change was loud.
  • Loading branch information
consideRatio committed Oct 4, 2024
1 parent ac64eff commit 800bbcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dashboards/jupyterhub.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local userMemoryDistribution =
common.heatmapOptions
+ heatmap.new('User memory usage distribution')
+ heatmap.options.yAxis.withUnit('bytes')
+ heatmap.options.color.HeatmapColorOptions.withScheme('Viridis')
+ heatmap.options.color.withScheme('Viridis')
+ heatmap.options.calculation.xBuckets.withMode('size')
+ heatmap.options.calculation.xBuckets.withValue('600s') // must align with interval
+ heatmap.queryOptions.withInterval('600s') // must align with xBuckets value
Expand All @@ -41,7 +41,7 @@ local userCPUDistribution =
common.heatmapOptions
+ heatmap.new('User CPU usage distribution')
+ heatmap.options.yAxis.withUnit('percentunit')
+ heatmap.options.color.HeatmapColorOptions.withScheme('Viridis')
+ heatmap.options.color.withScheme('Viridis')
+ heatmap.options.calculation.xBuckets.withMode('size')
+ heatmap.options.calculation.xBuckets.withValue('600s') // must align with interval
+ heatmap.queryOptions.withInterval('600s') // must align with xBuckets value
Expand All @@ -66,7 +66,7 @@ local userAgeDistribution =
common.heatmapOptions
+ heatmap.new('User active age distribution')
+ heatmap.options.yAxis.withUnit('s')
+ heatmap.options.color.HeatmapColorOptions.withScheme('Viridis')
+ heatmap.options.color.withScheme('Viridis')
+ heatmap.options.calculation.xBuckets.withMode('size')
+ heatmap.options.calculation.xBuckets.withValue('600s') // must align with interval
+ heatmap.queryOptions.withInterval('600s') // must align with xBuckets value
Expand Down

0 comments on commit 800bbcc

Please sign in to comment.