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