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(
|
||||
table_panel(
|
||||
10,
|
||||
"Namespace Plurality by Node v26",
|
||||
"Namespace Plurality by Node v27",
|
||||
(
|
||||
f"{share_expr} * on(namespace,node) group_left() "
|
||||
f"({mask_expr})"
|
||||
@ -1223,7 +1223,21 @@ def build_pods_dashboard():
|
||||
{"id": "filterByValue", "options": {"match": "Value", "operator": "gt", "value": 0}},
|
||||
{
|
||||
"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,
|
||||
|
||||
@ -507,7 +507,7 @@
|
||||
{
|
||||
"id": 10,
|
||||
"type": "table",
|
||||
"title": "Namespace Plurality by Node v26",
|
||||
"title": "Namespace Plurality by Node v27",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "atlas-vm"
|
||||
@ -570,10 +570,31 @@
|
||||
"id": "sortBy",
|
||||
"options": {
|
||||
"fields": [
|
||||
"node",
|
||||
"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,
|
||||
"type": "table",
|
||||
"title": "Namespace Plurality by Node v26",
|
||||
"title": "Namespace Plurality by Node v27",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "atlas-vm"
|
||||
@ -579,10 +579,31 @@ data:
|
||||
"id": "sortBy",
|
||||
"options": {
|
||||
"fields": [
|
||||
"node",
|
||||
"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