Group namespace plurality rows to one per namespace
This commit is contained in:
parent
18f3a2cefe
commit
56bb4e91b9
@ -1210,7 +1210,7 @@ def build_pods_dashboard():
|
|||||||
panels.append(
|
panels.append(
|
||||||
table_panel(
|
table_panel(
|
||||||
10,
|
10,
|
||||||
"Namespace Plurality by Node v26",
|
"Namespace Plurality by Node v27",
|
||||||
(
|
(
|
||||||
f"{share_expr} * on(namespace,node) group_left() "
|
f"{share_expr} * on(namespace,node) group_left() "
|
||||||
f"({mask_expr})"
|
f"({mask_expr})"
|
||||||
@ -1223,7 +1223,21 @@ def build_pods_dashboard():
|
|||||||
{"id": "filterByValue", "options": {"match": "Value", "operator": "gt", "value": 0}},
|
{"id": "filterByValue", "options": {"match": "Value", "operator": "gt", "value": 0}},
|
||||||
{
|
{
|
||||||
"id": "sortBy",
|
"id": "sortBy",
|
||||||
"options": {"fields": ["node", "Value"], "order": "asc"},
|
"options": {"fields": ["Value"], "order": "desc"},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "groupBy",
|
||||||
|
"options": {
|
||||||
|
"fields": {
|
||||||
|
"namespace": {
|
||||||
|
"aggregations": [
|
||||||
|
{"field": "Value", "operation": "max"},
|
||||||
|
{"field": "node", "operation": "first"},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rowBy": ["namespace"],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
instant=True,
|
instant=True,
|
||||||
|
|||||||
@ -507,7 +507,7 @@
|
|||||||
{
|
{
|
||||||
"id": 10,
|
"id": 10,
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"title": "Namespace Plurality by Node v26",
|
"title": "Namespace Plurality by Node v27",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "atlas-vm"
|
"uid": "atlas-vm"
|
||||||
@ -570,10 +570,31 @@
|
|||||||
"id": "sortBy",
|
"id": "sortBy",
|
||||||
"options": {
|
"options": {
|
||||||
"fields": [
|
"fields": [
|
||||||
"node",
|
|
||||||
"Value"
|
"Value"
|
||||||
],
|
],
|
||||||
"order": "asc"
|
"order": "desc"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "groupBy",
|
||||||
|
"options": {
|
||||||
|
"fields": {
|
||||||
|
"namespace": {
|
||||||
|
"aggregations": [
|
||||||
|
{
|
||||||
|
"field": "Value",
|
||||||
|
"operation": "max"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "node",
|
||||||
|
"operation": "first"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rowBy": [
|
||||||
|
"namespace"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -516,7 +516,7 @@ data:
|
|||||||
{
|
{
|
||||||
"id": 10,
|
"id": 10,
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"title": "Namespace Plurality by Node v26",
|
"title": "Namespace Plurality by Node v27",
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "atlas-vm"
|
"uid": "atlas-vm"
|
||||||
@ -579,10 +579,31 @@ data:
|
|||||||
"id": "sortBy",
|
"id": "sortBy",
|
||||||
"options": {
|
"options": {
|
||||||
"fields": [
|
"fields": [
|
||||||
"node",
|
|
||||||
"Value"
|
"Value"
|
||||||
],
|
],
|
||||||
"order": "asc"
|
"order": "desc"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "groupBy",
|
||||||
|
"options": {
|
||||||
|
"fields": {
|
||||||
|
"namespace": {
|
||||||
|
"aggregations": [
|
||||||
|
{
|
||||||
|
"field": "Value",
|
||||||
|
"operation": "max"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "node",
|
||||||
|
"operation": "first"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rowBy": [
|
||||||
|
"namespace"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user