From 13eb02c19b6f6c97b49067c2ecf7f45dbbb36ec2 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Sat, 13 Dec 2025 17:32:19 -0300 Subject: [PATCH] Hide filters on namespace plurality table --- scripts/dashboards_render_atlas.py | 9 +++++++-- services/monitoring/dashboards/atlas-pods.json | 5 +++-- services/monitoring/grafana-dashboard-pods.yaml | 5 +++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/scripts/dashboards_render_atlas.py b/scripts/dashboards_render_atlas.py index bc32f7e..4525775 100644 --- a/scripts/dashboards_render_atlas.py +++ b/scripts/dashboards_render_atlas.py @@ -526,9 +526,13 @@ def table_panel( unit="none", transformations=None, instant=False, + options=None, ): """Return a Grafana table panel definition.""" # Optional PromQL subquery helpers in expr: share(), etc. + panel_options = {"showHeader": True} + if options: + panel_options.update(options) panel = { "id": panel_id, "type": "table", @@ -537,7 +541,7 @@ def table_panel( "gridPos": grid, "targets": [{"expr": expr, "refId": "A", **({"instant": True} if instant else {})}], "fieldConfig": {"defaults": {"unit": unit}, "overrides": []}, - "options": {"showHeader": True}, + "options": panel_options, } if transformations: panel["transformations"] = transformations @@ -1191,7 +1195,7 @@ def build_pods_dashboard(): panels.append( table_panel( 10, - "Namespace Plurality by Node v16", + "Namespace Plurality by Node v17", ( f"{share_expr} * on(namespace,node) group_left() " f"({mask_expr})" @@ -1205,6 +1209,7 @@ def build_pods_dashboard(): {"id": "sortBy", "options": {"fields": ["node", "Value"], "order": "asc"}}, ], instant=True, + options={"showColumnFilters": False}, ) ) diff --git a/services/monitoring/dashboards/atlas-pods.json b/services/monitoring/dashboards/atlas-pods.json index fb6b98f..ec94348 100644 --- a/services/monitoring/dashboards/atlas-pods.json +++ b/services/monitoring/dashboards/atlas-pods.json @@ -495,7 +495,7 @@ { "id": 10, "type": "table", - "title": "Namespace Plurality by Node v16", + "title": "Namespace Plurality by Node v17", "datasource": { "type": "prometheus", "uid": "atlas-vm" @@ -520,7 +520,8 @@ "overrides": [] }, "options": { - "showHeader": true + "showHeader": true, + "showColumnFilters": false }, "transformations": [ { diff --git a/services/monitoring/grafana-dashboard-pods.yaml b/services/monitoring/grafana-dashboard-pods.yaml index 198c951..8c7bfbe 100644 --- a/services/monitoring/grafana-dashboard-pods.yaml +++ b/services/monitoring/grafana-dashboard-pods.yaml @@ -504,7 +504,7 @@ data: { "id": 10, "type": "table", - "title": "Namespace Plurality by Node v16", + "title": "Namespace Plurality by Node v17", "datasource": { "type": "prometheus", "uid": "atlas-vm" @@ -529,7 +529,8 @@ data: "overrides": [] }, "options": { - "showHeader": true + "showHeader": true, + "showColumnFilters": false }, "transformations": [ {