monitoring(jenkins): improve weather panel readability and layout

This commit is contained in:
Brad Stein 2026-04-13 11:52:24 -03:00
parent d847a731fb
commit 18666d5aec
5 changed files with 55 additions and 38 deletions

View File

@ -1579,11 +1579,12 @@ def jenkins_weather_statlist_panel(
"options": { "options": {
"colorMode": "value", "colorMode": "value",
"graphMode": "none", "graphMode": "none",
"justifyMode": "auto", "justifyMode": "left",
"orientation": "horizontal", "orientation": "horizontal",
"wideLayout": True, "wideLayout": True,
"reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": False}, "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": False},
"textMode": "name_value", "textMode": "name_and_value",
"text": {"titleSize": 12, "valueSize": 12},
}, },
"transformations": [{"id": "sortBy", "options": {"fields": ["Value"], "order": sort_order}}], "transformations": [{"id": "sortBy", "options": {"fields": ["Value"], "order": sort_order}}],
} }
@ -2102,7 +2103,7 @@ def build_overview():
44, 44,
"One-off Job Pods (age hours)", "One-off Job Pods (age hours)",
ONEOFF_JOB_POD_AGE_HOURS, ONEOFF_JOB_POD_AGE_HOURS,
{"h": 5, "w": 8, "x": 0, "y": 32}, {"h": 5, "w": 6, "x": 0, "y": 32},
unit="h", unit="h",
instant=True, instant=True,
legend="{{namespace}}/{{pod}}", legend="{{namespace}}/{{pod}}",
@ -2180,11 +2181,11 @@ def build_overview():
142, 142,
"Jenkins Build Weather (last run h, newest first)", "Jenkins Build Weather (last run h, newest first)",
JENKINS_BUILD_WEATHER_LAST_RUN_AGE_HOURS, JENKINS_BUILD_WEATHER_LAST_RUN_AGE_HOURS,
{"h": 5, "w": 8, "x": 8, "y": 32}, {"h": 5, "w": 12, "x": 6, "y": 32},
unit="h", unit="h",
decimals=2, decimals=1,
sort_order="asc", sort_order="asc",
limit=8, limit=12,
links=link_to("atlas-jobs"), links=link_to("atlas-jobs"),
description=( description=(
"Jenkins homepage-style list from Ariadne with weather icons and status-colored job names. " "Jenkins homepage-style list from Ariadne with weather icons and status-colored job names. "
@ -2197,7 +2198,7 @@ def build_overview():
47, 47,
"PVC Backup Health / Age", "PVC Backup Health / Age",
PVC_BACKUP_AGE_HOURS_BY_PVC, PVC_BACKUP_AGE_HOURS_BY_PVC,
{"h": 5, "w": 8, "x": 16, "y": 32}, {"h": 5, "w": 6, "x": 18, "y": 32},
unit="h", unit="h",
instant=True, instant=True,
legend="{{namespace}}/{{pvc}}", legend="{{namespace}}/{{pvc}}",
@ -3833,9 +3834,9 @@ def build_jobs_dashboard():
24, 24,
"Jenkins Build Weather (last run h, newest first)", "Jenkins Build Weather (last run h, newest first)",
JENKINS_BUILD_WEATHER_LAST_RUN_AGE_HOURS, JENKINS_BUILD_WEATHER_LAST_RUN_AGE_HOURS,
{"h": 8, "w": 24, "x": 0, "y": 44}, {"h": 9, "w": 24, "x": 0, "y": 44},
unit="h", unit="h",
decimals=2, decimals=1,
sort_order="asc", sort_order="asc",
limit=20, limit=20,
description=( description=(
@ -3848,7 +3849,7 @@ def build_jobs_dashboard():
27, 27,
"Jenkins Workspace PV Age (h, detached only)", "Jenkins Workspace PV Age (h, detached only)",
JENKINS_WORKSPACE_PV_STALE_AGE_HOURS, JENKINS_WORKSPACE_PV_STALE_AGE_HOURS,
{"h": 10, "w": 24, "x": 0, "y": 52}, {"h": 10, "w": 24, "x": 0, "y": 53},
unit="h", unit="h",
instant=True, instant=True,
legend="{{name}} -> {{persistentvolume}}", legend="{{name}} -> {{persistentvolume}}",

View File

@ -1543,7 +1543,7 @@
"uid": "atlas-vm" "uid": "atlas-vm"
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 9,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 44 "y": 44
@ -1577,7 +1577,7 @@
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"unit": "h", "unit": "h",
"decimals": 2, "decimals": 1,
"min": 0, "min": 0,
"links": [ "links": [
{ {
@ -1653,7 +1653,7 @@
"options": { "options": {
"colorMode": "value", "colorMode": "value",
"graphMode": "none", "graphMode": "none",
"justifyMode": "auto", "justifyMode": "left",
"orientation": "horizontal", "orientation": "horizontal",
"wideLayout": true, "wideLayout": true,
"reduceOptions": { "reduceOptions": {
@ -1663,7 +1663,11 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"textMode": "name_value" "textMode": "name_and_value",
"text": {
"titleSize": 12,
"valueSize": 12
}
}, },
"transformations": [ "transformations": [
{ {
@ -1696,7 +1700,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 52 "y": 53
}, },
"targets": [ "targets": [
{ {

View File

@ -2010,7 +2010,7 @@
}, },
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 8, "w": 6,
"x": 0, "x": 0,
"y": 32 "y": 32
}, },
@ -2288,8 +2288,8 @@
}, },
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 8, "w": 12,
"x": 8, "x": 6,
"y": 32 "y": 32
}, },
"targets": [ "targets": [
@ -2321,7 +2321,7 @@
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"unit": "h", "unit": "h",
"decimals": 2, "decimals": 1,
"min": 0, "min": 0,
"links": [ "links": [
{ {
@ -2397,7 +2397,7 @@
"options": { "options": {
"colorMode": "value", "colorMode": "value",
"graphMode": "none", "graphMode": "none",
"justifyMode": "auto", "justifyMode": "left",
"orientation": "horizontal", "orientation": "horizontal",
"wideLayout": true, "wideLayout": true,
"reduceOptions": { "reduceOptions": {
@ -2407,7 +2407,11 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"textMode": "name_value" "textMode": "name_and_value",
"text": {
"titleSize": 12,
"valueSize": 12
}
}, },
"transformations": [ "transformations": [
{ {
@ -2422,7 +2426,7 @@
{ {
"id": "limit", "id": "limit",
"options": { "options": {
"limit": 8 "limit": 12
} }
} }
], ],
@ -2445,8 +2449,8 @@
}, },
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 8, "w": 6,
"x": 16, "x": 18,
"y": 32 "y": 32
}, },
"targets": [ "targets": [

View File

@ -1552,7 +1552,7 @@ data:
"uid": "atlas-vm" "uid": "atlas-vm"
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 9,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 44 "y": 44
@ -1586,7 +1586,7 @@ data:
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"unit": "h", "unit": "h",
"decimals": 2, "decimals": 1,
"min": 0, "min": 0,
"links": [ "links": [
{ {
@ -1662,7 +1662,7 @@ data:
"options": { "options": {
"colorMode": "value", "colorMode": "value",
"graphMode": "none", "graphMode": "none",
"justifyMode": "auto", "justifyMode": "left",
"orientation": "horizontal", "orientation": "horizontal",
"wideLayout": true, "wideLayout": true,
"reduceOptions": { "reduceOptions": {
@ -1672,7 +1672,11 @@ data:
"fields": "", "fields": "",
"values": false "values": false
}, },
"textMode": "name_value" "textMode": "name_and_value",
"text": {
"titleSize": 12,
"valueSize": 12
}
}, },
"transformations": [ "transformations": [
{ {
@ -1705,7 +1709,7 @@ data:
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 52 "y": 53
}, },
"targets": [ "targets": [
{ {

View File

@ -2019,7 +2019,7 @@ data:
}, },
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 8, "w": 6,
"x": 0, "x": 0,
"y": 32 "y": 32
}, },
@ -2297,8 +2297,8 @@ data:
}, },
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 8, "w": 12,
"x": 8, "x": 6,
"y": 32 "y": 32
}, },
"targets": [ "targets": [
@ -2330,7 +2330,7 @@ data:
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"unit": "h", "unit": "h",
"decimals": 2, "decimals": 1,
"min": 0, "min": 0,
"links": [ "links": [
{ {
@ -2406,7 +2406,7 @@ data:
"options": { "options": {
"colorMode": "value", "colorMode": "value",
"graphMode": "none", "graphMode": "none",
"justifyMode": "auto", "justifyMode": "left",
"orientation": "horizontal", "orientation": "horizontal",
"wideLayout": true, "wideLayout": true,
"reduceOptions": { "reduceOptions": {
@ -2416,7 +2416,11 @@ data:
"fields": "", "fields": "",
"values": false "values": false
}, },
"textMode": "name_value" "textMode": "name_and_value",
"text": {
"titleSize": 12,
"valueSize": 12
}
}, },
"transformations": [ "transformations": [
{ {
@ -2431,7 +2435,7 @@ data:
{ {
"id": "limit", "id": "limit",
"options": { "options": {
"limit": 8 "limit": 12
} }
} }
], ],
@ -2454,8 +2458,8 @@ data:
}, },
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 8, "w": 6,
"x": 16, "x": 18,
"y": 32 "y": 32
}, },
"targets": [ "targets": [