gerrit-monitoring/dashboards/globals/grid_pos.libsonnet
Thomas Draebing f839c376af Convert overview dashboard to grafonnet
In addition this updates Grafonnet to include bar gauges.

Change-Id: I538bd965d52f841b24c9607fc97d5ac748b9d68b
2020-12-04 08:31:27 +01:00

21 lines
314 B
Plaintext

local defaults = import './defaults.libsonnet';
local TOTAL_WIDTH = 24;
local DEFAULT_HEIGHT = 11;
{
new(
row,
column,
total_columns=2,
height=DEFAULT_HEIGHT
):: {
local width = TOTAL_WIDTH / total_columns,
x: column * width,
y: row * height,
w: width,
h: height,
},
}