Skip to content

Commit

Permalink
feat: Tenant Dashboard should include an average size per object co… (
Browse files Browse the repository at this point in the history
#3091)

* feat: Tenant Dashboard should include an `average size per object` column

Thanks to @ofu48167 for the contribution!

Fixes: #3090
  • Loading branch information
cgrinds authored Aug 7, 2024
1 parent c38b1a2 commit 0d2d7b4
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions grafana/dashboards/storagegrid/tenant.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,17 @@
"displayMode": "auto",
"filterable": true
},
"mappings": [],
"mappings": [
{
"options": {
"NaN": {
"index": 0,
"text": "N/A"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "percentage",
"steps": [
Expand Down Expand Up @@ -220,6 +230,18 @@
"value": "locale"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Avg Size per Object"
},
"properties": [
{
"id": "unit",
"value": "decbytes"
}
]
}
]
},
Expand Down Expand Up @@ -349,6 +371,21 @@
"Value #E": "Objects"
}
}
},
{
"id": "calculateField",
"options": {
"alias": "Avg Size per Object",
"binary": {
"left": "Logical Used",
"operator": "/",
"right": "Objects"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
}
}
}
],
"type": "table"
Expand Down Expand Up @@ -677,5 +714,5 @@
"timezone": "",
"title": "StorageGrid: Tenants",
"uid": "storagegrid-tenants",
"version": 2
"version": 3
}

0 comments on commit 0d2d7b4

Please sign in to comment.