Hide table footer on namespace plurality table
This commit is contained in:
parent
4fcc7c84f2
commit
2156b6f6aa
@ -528,12 +528,15 @@ def table_panel(
|
||||
instant=False,
|
||||
options=None,
|
||||
filterable=True,
|
||||
footer=None,
|
||||
):
|
||||
"""Return a Grafana table panel definition."""
|
||||
# Optional PromQL subquery helpers in expr: share(), etc.
|
||||
panel_options = {"showHeader": True, "columnFilters": False}
|
||||
if options:
|
||||
panel_options.update(options)
|
||||
if footer is not None:
|
||||
panel_options["footer"] = footer
|
||||
field_defaults = {"unit": unit, "custom": {"filterable": filterable}}
|
||||
panel = {
|
||||
"id": panel_id,
|
||||
@ -1198,7 +1201,7 @@ def build_pods_dashboard():
|
||||
panels.append(
|
||||
table_panel(
|
||||
10,
|
||||
"Namespace Plurality by Node v20",
|
||||
"Namespace Plurality by Node v21",
|
||||
(
|
||||
f"{share_expr} * on(namespace,node) group_left() "
|
||||
f"({mask_expr}) * on(namespace,node) group_left() ({nonzero_expr})"
|
||||
@ -1213,6 +1216,7 @@ def build_pods_dashboard():
|
||||
instant=True,
|
||||
options={"showColumnFilters": False},
|
||||
filterable=False,
|
||||
footer={"show": False, "fields": "", "calcs": []},
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@ -507,7 +507,7 @@
|
||||
{
|
||||
"id": 10,
|
||||
"type": "table",
|
||||
"title": "Namespace Plurality by Node v20",
|
||||
"title": "Namespace Plurality by Node v21",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "atlas-vm"
|
||||
@ -537,7 +537,12 @@
|
||||
"options": {
|
||||
"showHeader": true,
|
||||
"columnFilters": false,
|
||||
"showColumnFilters": false
|
||||
"showColumnFilters": false,
|
||||
"footer": {
|
||||
"show": false,
|
||||
"fields": "",
|
||||
"calcs": []
|
||||
}
|
||||
},
|
||||
"transformations": [
|
||||
{
|
||||
|
||||
@ -516,7 +516,7 @@ data:
|
||||
{
|
||||
"id": 10,
|
||||
"type": "table",
|
||||
"title": "Namespace Plurality by Node v20",
|
||||
"title": "Namespace Plurality by Node v21",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "atlas-vm"
|
||||
@ -546,7 +546,12 @@ data:
|
||||
"options": {
|
||||
"showHeader": true,
|
||||
"columnFilters": false,
|
||||
"showColumnFilters": false
|
||||
"showColumnFilters": false,
|
||||
"footer": {
|
||||
"show": false,
|
||||
"fields": "",
|
||||
"calcs": []
|
||||
}
|
||||
},
|
||||
"transformations": [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user