Skip to content

Commit

Permalink
Update grid layout for for cluster dashboard
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Adams <[email protected]>
  • Loading branch information
sysadmind committed Sep 7, 2024
1 parent 1674b81 commit d441e67
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 62 deletions.
120 changes: 60 additions & 60 deletions elasticsearch-mixin/compiled/dashboards/cluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"w": 4,
"h": 4,
"w": 8,
"x": 0,
"y": 1
},
Expand All @@ -45,9 +45,9 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"w": 4,
"x": 4,
"h": 4,
"w": 8,
"x": 8,
"y": 1
},
"id": 3,
Expand All @@ -70,9 +70,9 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"w": 4,
"x": 8,
"h": 4,
"w": 8,
"x": 16,
"y": 1
},
"id": 4,
Expand All @@ -95,7 +95,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 4
"y": 5
},
"id": 5,
"panels": [ ],
Expand All @@ -108,10 +108,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 0,
"y": 5
"y": 6
},
"id": 6,
"pluginVersion": "v10.4.0",
Expand All @@ -133,10 +133,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 4,
"y": 5
"y": 6
},
"id": 7,
"pluginVersion": "v10.4.0",
Expand All @@ -158,10 +158,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 8,
"y": 5
"y": 6
},
"id": 8,
"pluginVersion": "v10.4.0",
Expand All @@ -183,10 +183,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 12,
"y": 5
"y": 6
},
"id": 9,
"pluginVersion": "v10.4.0",
Expand All @@ -208,10 +208,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 16,
"y": 5
"y": 6
},
"id": 10,
"pluginVersion": "v10.4.0",
Expand All @@ -233,10 +233,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 20,
"y": 5
"y": 6
},
"id": 11,
"pluginVersion": "v10.4.0",
Expand All @@ -258,7 +258,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 8
"y": 10
},
"id": 12,
"panels": [ ],
Expand All @@ -271,10 +271,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 0,
"y": 9
"y": 11
},
"id": 13,
"pluginVersion": "v10.4.0",
Expand All @@ -301,10 +301,10 @@
}
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 4,
"y": 9
"y": 11
},
"id": 14,
"pluginVersion": "v10.4.0",
Expand All @@ -326,10 +326,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 8,
"y": 9
"y": 11
},
"id": 15,
"pluginVersion": "v10.4.0",
Expand All @@ -352,10 +352,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 12,
"y": 9
"y": 11
},
"id": 16,
"pluginVersion": "v10.4.0",
Expand All @@ -378,10 +378,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"h": 4,
"w": 4,
"x": 16,
"y": 9
"y": 11
},
"id": 17,
"pluginVersion": "v10.4.0",
Expand All @@ -404,7 +404,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 12
"y": 15
},
"id": 18,
"panels": [ ],
Expand All @@ -422,10 +422,10 @@
}
},
"gridPos": {
"h": 3,
"w": 4,
"h": 4,
"w": 6,
"x": 0,
"y": 13
"y": 16
},
"id": 19,
"pluginVersion": "v10.4.0",
Expand Down Expand Up @@ -455,10 +455,10 @@
}
},
"gridPos": {
"h": 3,
"w": 4,
"x": 4,
"y": 13
"h": 4,
"w": 6,
"x": 6,
"y": 16
},
"id": 20,
"pluginVersion": "v10.4.0",
Expand Down Expand Up @@ -486,10 +486,10 @@
}
},
"gridPos": {
"h": 3,
"w": 4,
"x": 8,
"y": 13
"h": 4,
"w": 6,
"x": 12,
"y": 16
},
"id": 21,
"pluginVersion": "v10.4.0",
Expand Down Expand Up @@ -517,10 +517,10 @@
}
},
"gridPos": {
"h": 3,
"w": 4,
"x": 12,
"y": 13
"h": 4,
"w": 6,
"x": 18,
"y": 16
},
"id": 22,
"pluginVersion": "v10.4.0",
Expand All @@ -543,7 +543,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 16
"y": 20
},
"id": 23,
"panels": [ ],
Expand All @@ -556,10 +556,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"w": 4,
"h": 4,
"w": 12,
"x": 0,
"y": 17
"y": 21
},
"id": 24,
"pluginVersion": "v10.4.0",
Expand All @@ -582,10 +582,10 @@
"uid": "-- Mixed --"
},
"gridPos": {
"h": 3,
"w": 4,
"x": 4,
"y": 17
"h": 4,
"w": 12,
"x": 12,
"y": 21
},
"id": 25,
"pluginVersion": "v10.4.0",
Expand All @@ -608,7 +608,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 20
"y": 25
},
"id": 26,
"panels": [ ],
Expand All @@ -626,10 +626,10 @@
}
},
"gridPos": {
"h": 3,
"w": 4,
"h": 4,
"w": 24,
"x": 0,
"y": 21
"y": 26
},
"id": 27,
"pluginVersion": "v10.4.0",
Expand Down
5 changes: 3 additions & 2 deletions elasticsearch-mixin/dashboards/cluster.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local row = g.panel.row;
local panels = import './panels.libsonnet';
local queries = import './queries.libsonnet';
local variables = import './variables.libsonnet';
local util = import './util.libsonnet';

{
grafanaDashboards+:: {
Expand All @@ -20,7 +21,7 @@ local variables = import './variables.libsonnet';
variables.cluster,
])
+ dashboard.withPanels(
g.util.grid.makeGrid([
util.makeGrid([
row.new('Overview')
+ row.withPanels([
panels.stat.nodes('Nodes', queries.runningNodes),
Expand Down Expand Up @@ -60,7 +61,7 @@ local variables = import './variables.libsonnet';
+ row.withPanels([
panels.timeSeries.bytes('Transport Rate', [queries.transportTXRate, queries.transportRXRate]),
]),
], panelWidth=4, panelHeight=3),
]),
),
},
}
Loading

0 comments on commit d441e67

Please sign in to comment.