From bcaa0a33279e4b1223eac2e560eb925cdfdb8197 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Mon, 17 Nov 2025 19:53:39 -0300 Subject: [PATCH] monitoring: show hottest node names --- scripts/render_dashboards.py | 4 ++++ services/monitoring/dashboards/atlas-overview.json | 12 ++++++++---- services/monitoring/grafana-dashboard-overview.yaml | 12 ++++++++---- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/scripts/render_dashboards.py b/scripts/render_dashboards.py index 97d64cd..a9c319a 100644 --- a/scripts/render_dashboards.py +++ b/scripts/render_dashboards.py @@ -224,6 +224,7 @@ def stat_panel( instant=False, value_suffix=None, links=None, + display_name=None, ): """Return a Grafana stat panel definition.""" defaults = { @@ -242,6 +243,8 @@ def stat_panel( } if value_suffix: defaults["custom"]["valueSuffix"] = value_suffix + if display_name: + defaults["displayName"] = display_name panel = { "id": panel_id, "type": "stat", @@ -478,6 +481,7 @@ def build_overview(): text_mode="name_and_value", legend="{{node}}", instant=True, + display_name="{{__field.labels.node}}\\n", links=link_to("atlas-nodes"), ) ) diff --git a/services/monitoring/dashboards/atlas-overview.json b/services/monitoring/dashboards/atlas-overview.json index d51d203..f0cceaf 100644 --- a/services/monitoring/dashboards/atlas-overview.json +++ b/services/monitoring/dashboards/atlas-overview.json @@ -470,7 +470,8 @@ "unit": "percent", "custom": { "displayMode": "auto" - } + }, + "displayName": "{{__field.labels.node}}\\n" }, "overrides": [] }, @@ -543,7 +544,8 @@ "unit": "percent", "custom": { "displayMode": "auto" - } + }, + "displayName": "{{__field.labels.node}}\\n" }, "overrides": [] }, @@ -612,7 +614,8 @@ "unit": "Bps", "custom": { "displayMode": "auto" - } + }, + "displayName": "{{__field.labels.node}}\\n" }, "overrides": [] }, @@ -681,7 +684,8 @@ "unit": "Bps", "custom": { "displayMode": "auto" - } + }, + "displayName": "{{__field.labels.node}}\\n" }, "overrides": [] }, diff --git a/services/monitoring/grafana-dashboard-overview.yaml b/services/monitoring/grafana-dashboard-overview.yaml index 8d03cf6..1839d8f 100644 --- a/services/monitoring/grafana-dashboard-overview.yaml +++ b/services/monitoring/grafana-dashboard-overview.yaml @@ -479,7 +479,8 @@ data: "unit": "percent", "custom": { "displayMode": "auto" - } + }, + "displayName": "{{__field.labels.node}}\\n" }, "overrides": [] }, @@ -552,7 +553,8 @@ data: "unit": "percent", "custom": { "displayMode": "auto" - } + }, + "displayName": "{{__field.labels.node}}\\n" }, "overrides": [] }, @@ -621,7 +623,8 @@ data: "unit": "Bps", "custom": { "displayMode": "auto" - } + }, + "displayName": "{{__field.labels.node}}\\n" }, "overrides": [] }, @@ -690,7 +693,8 @@ data: "unit": "Bps", "custom": { "displayMode": "auto" - } + }, + "displayName": "{{__field.labels.node}}\\n" }, "overrides": [] },