Skip to content

Commit

Permalink
migrate: jupyterhub.jsonnet and .libsonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 6, 2024
1 parent e819b14 commit 19ac66b
Show file tree
Hide file tree
Showing 3 changed files with 617 additions and 543 deletions.
11 changes: 11 additions & 0 deletions dashboards/common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ local grafonnet = import 'grafonnet/main.libsonnet';
local ts = grafonnet.panel.timeSeries;
local barChart = grafonnet.panel.barChart;
local barGauge = grafonnet.panel.barGauge;
local heatmap = grafonnet.panel.heatmap;
local table = grafonnet.panel.table;
local var = grafonnet.dashboard.variable;

{
Expand Down Expand Up @@ -32,6 +34,15 @@ local var = grafonnet.dashboard.variable;
barGaugeOptions:
barGauge.standardOptions.withMin(0),

// grafana ref: https://grafana.com/docs/grafana/v10.4/panels-visualizations/visualizations/heatmap/
// grafonnet ref: https://grafana.github.io/grafonnet/API/panel/heatmap/index.html
heatmapOptions:
heatmap.standardOptions.withMin(0),

tableOptions:
table.standardOptions.withMin(0),


variables: {
prometheus:
var.datasource.new('PROMETHEUS_DS', 'prometheus'),
Expand Down
Loading

0 comments on commit 19ac66b

Please sign in to comment.