Simplify namespace plurality table rendering
This commit is contained in:
parent
2156b6f6aa
commit
be0ac48b33
@ -1201,18 +1201,14 @@ def build_pods_dashboard():
|
|||||||
panels.append(
|
panels.append(
|
||||||
table_panel(
|
table_panel(
|
||||||
10,
|
10,
|
||||||
"Namespace Plurality by Node v21",
|
"Namespace Plurality by Node v22",
|
||||||
(
|
(
|
||||||
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})"
|
||||||
),
|
),
|
||||||
{"h": 8, "w": 24, "x": 0, "y": 42},
|
{"h": 8, "w": 24, "x": 0, "y": 42},
|
||||||
unit="percent",
|
unit="percent",
|
||||||
transformations=[
|
transformations=None,
|
||||||
{"id": "labelsToFields", "options": {}},
|
|
||||||
{"id": "organize", "options": {"excludeByName": {"Time": True}}},
|
|
||||||
{"id": "sortBy", "options": {"fields": ["node", "Value"], "order": "asc"}},
|
|
||||||
],
|
|
||||||
instant=True,
|
instant=True,
|
||||||
options={"showColumnFilters": False},
|
options={"showColumnFilters": False},
|
||||||
filterable=False,
|
filterable=False,
|
||||||
|
|||||||
@ -507,7 +507,7 @@
|
|||||||
{
|
{
|
||||||
"id": 10,
|
"id": 10,
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"title": "Namespace Plurality by Node v21",
|
"title": "Namespace Plurality by Node v22",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "atlas-vm"
|
"uid": "atlas-vm"
|
||||||
@ -543,31 +543,7 @@
|
|||||||
"fields": "",
|
"fields": "",
|
||||||
"calcs": []
|
"calcs": []
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"transformations": [
|
|
||||||
{
|
|
||||||
"id": "labelsToFields",
|
|
||||||
"options": {}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "organize",
|
|
||||||
"options": {
|
|
||||||
"excludeByName": {
|
|
||||||
"Time": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "sortBy",
|
|
||||||
"options": {
|
|
||||||
"fields": [
|
|
||||||
"node",
|
|
||||||
"Value"
|
|
||||||
],
|
|
||||||
"order": "asc"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": {
|
"time": {
|
||||||
|
|||||||
@ -516,7 +516,7 @@ data:
|
|||||||
{
|
{
|
||||||
"id": 10,
|
"id": 10,
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"title": "Namespace Plurality by Node v21",
|
"title": "Namespace Plurality by Node v22",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "atlas-vm"
|
"uid": "atlas-vm"
|
||||||
@ -552,31 +552,7 @@ data:
|
|||||||
"fields": "",
|
"fields": "",
|
||||||
"calcs": []
|
"calcs": []
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"transformations": [
|
|
||||||
{
|
|
||||||
"id": "labelsToFields",
|
|
||||||
"options": {}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "organize",
|
|
||||||
"options": {
|
|
||||||
"excludeByName": {
|
|
||||||
"Time": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "sortBy",
|
|
||||||
"options": {
|
|
||||||
"fields": [
|
|
||||||
"node",
|
|
||||||
"Value"
|
|
||||||
],
|
|
||||||
"order": "asc"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": {
|
"time": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user