From 800bbcc2ec0ac976ff6411b7f2b4cdb2a254c13d Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Fri, 4 Oct 2024 20:19:27 +0200 Subject: [PATCH] Adjust definitions for grafonnet v11 changes I found some breaking changes described in https://github.com/grafana/grafonnet/pull/199, and this adjusts for those. Before adjusting we got errors, so the breaking change was loud. --- dashboards/jupyterhub.jsonnet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboards/jupyterhub.jsonnet b/dashboards/jupyterhub.jsonnet index ce437d8..fe75621 100755 --- a/dashboards/jupyterhub.jsonnet +++ b/dashboards/jupyterhub.jsonnet @@ -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 @@ -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 @@ -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