Hide filters on namespace plurality table
This commit is contained in:
parent
134a4ad001
commit
13eb02c19b
@ -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},
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@ -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": [
|
||||
{
|
||||
|
||||
@ -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": [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user