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