Skip to content

Commit f7cb0b0

Browse files
authored
ceph-capacity-quick-view: update resource panels (#46)
Signed-off-by: Tatjana Dehler <tatjana.dehler@clyso.com>
1 parent 45357bf commit f7cb0b0

3 files changed

Lines changed: 33 additions & 31 deletions

File tree

charts/ceph-operations/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: ceph-operations
33
description: Ceph operations bundle
44
type: application
5-
version: 1.6.7
5+
version: 1.6.8
66
maintainers:
77
- name: sumitarora2786
88
- name: richardtief

charts/ceph-operations/perses-dashboards-global/ceph-capacity-quick-view.json

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
]
172172
}
173173
},
174-
"0-2": {
174+
"0-3": {
175175
"kind": "Panel",
176176
"spec": {
177177
"display": {
@@ -198,21 +198,21 @@
198198
"format": {
199199
"unit": "bytes"
200200
},
201-
"header": "Resource Capacity",
201+
"header": "Available Capacity",
202202
"name": "value #1"
203203
},
204204
{
205205
"format": {
206206
"unit": "bytes"
207207
},
208-
"header": "Resource Usage",
208+
"header": "Used",
209209
"name": "value #2"
210210
},
211211
{
212212
"format": {
213213
"unit": "percent-decimal"
214214
},
215-
"header": "Resource Usage (%)",
215+
"header": "Used (%)",
216216
"hide": false,
217217
"name": "value #3"
218218
},
@@ -260,7 +260,7 @@
260260
"plugin": {
261261
"kind": "PrometheusTimeSeriesQuery",
262262
"spec": {
263-
"query": "label_replace(\n sum by (region, name) (\n ceph_pool_metadata{name=~\"(.*).data\"} * on (region, pool_id) group_right(name) ceph_pool_bytes_used\n )\n, \"region_name\", \"$1\", \"name\", \"(.*).rgw.buckets.data\")"
263+
"query": "label_replace(\n sum by (region, name) (\n ceph_pool_metadata{name=~\"(.*).data\"} * on (region, pool_id) group_right(name) ceph_pool_stored\n )\n, \"region_name\", \"$1\", \"name\", \"(.*).rgw.buckets.data\")"
264264
}
265265
}
266266
}
@@ -271,7 +271,7 @@
271271
"plugin": {
272272
"kind": "PrometheusTimeSeriesQuery",
273273
"spec": {
274-
"query": "label_replace(\n 1 - (\n sum by (region, name) (\n ceph_pool_metadata{name=~\"(.*).data\"} * on (region, pool_id) group_right(name) ceph_pool_max_avail\n ) -\n sum by (region, name) (\n ceph_pool_metadata{name=~\"(.*).data\"} * on (region, pool_id) group_right(name) ceph_pool_bytes_used\n )\n ) / \n sum by (region, name) (\n ceph_pool_metadata{name=~\"(.*).data\"} * on (region, pool_id) group_right(name) ceph_pool_max_avail\n )\n, \"region_name\", \"$1\", \"name\", \"(.*).rgw.buckets.data\")",
274+
"query": "label_replace(\n sum by (region, name) (\n ceph_pool_metadata{name=~\"(.*).data\"} * on (region, pool_id) group_right(name) ceph_pool_percent_used\n )\n, \"region_name\", \"$1\", \"name\", \"(.*).rgw.buckets.data\")",
275275
"seriesNameFormat": ""
276276
}
277277
}
@@ -284,7 +284,7 @@
284284
"kind": "Panel",
285285
"spec": {
286286
"display": {
287-
"name": "Ceph Quota by Resource"
287+
"name": "Ceph Quota Per Resource"
288288
},
289289
"plugin": {
290290
"kind": "Table",
@@ -300,6 +300,7 @@
300300
},
301301
{
302302
"header": "Resource",
303+
"hide": false,
303304
"name": "full_resource"
304305
},
305306
{
@@ -313,22 +314,22 @@
313314
"format": {
314315
"unit": "bytes"
315316
},
316-
"header": "Quota Usage",
317-
"name": "value #2"
317+
"header": "Resource Usage",
318+
"name": "value #4"
318319
},
319320
{
320321
"format": {
321-
"unit": "bytes"
322+
"unit": "percent-decimal"
322323
},
323-
"header": "Unassigned Quota",
324-
"name": "value #3"
324+
"header": "Resource Usage %",
325+
"name": "value #6"
325326
},
326327
{
327328
"format": {
328329
"unit": "bytes"
329330
},
330-
"header": "Resource Usage",
331-
"name": "value #4"
331+
"header": "Quota Usage",
332+
"name": "value #2"
332333
},
333334
{
334335
"align": "left",
@@ -340,10 +341,11 @@
340341
},
341342
{
342343
"format": {
343-
"unit": "percent-decimal"
344+
"unit": "bytes"
344345
},
345-
"header": "Resource Usage %",
346-
"name": "value #6"
346+
"header": "Unassigned Quota",
347+
"hide": false,
348+
"name": "value #3"
347349
},
348350
{
349351
"hide": true,
@@ -467,28 +469,28 @@
467469
{
468470
"x": 0,
469471
"y": 0,
470-
"width": 10,
472+
"width": 8,
471473
"height": 14,
472474
"content": {
473475
"$ref": "#/spec/panels/0"
474476
}
475477
},
476478
{
477-
"x": 0,
478-
"y": 14,
479-
"width": 24,
480-
"height": 24,
479+
"x": 8,
480+
"y": 0,
481+
"width": 10,
482+
"height": 14,
481483
"content": {
482-
"$ref": "#/spec/panels/1-1"
484+
"$ref": "#/spec/panels/0-3"
483485
}
484486
},
485487
{
486-
"x": 10,
487-
"y": 0,
488-
"width": 14,
489-
"height": 14,
488+
"x": 0,
489+
"y": 14,
490+
"width": 18,
491+
"height": 21,
490492
"content": {
491-
"$ref": "#/spec/panels/0-2"
493+
"$ref": "#/spec/panels/1-1"
492494
}
493495
}
494496
]

charts/ceph-operations/plugindefinition.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ kind: PluginDefinition
66
metadata:
77
name: ceph-operations
88
spec:
9-
version: 1.6.7
9+
version: 1.6.8
1010
displayName: Ceph operations bundle
1111
description: Operations bundle for the Ceph storage backend
1212
docMarkDownUrl: https://raw.githubusercontent.com/cobaltcore-dev/cloud-storage-operations/main/ceph-operations/README.md
1313
icon: https://raw.githubusercontent.com/cobaltcore-dev/cloud-storage-operations/main/ceph-operations/ceph-logo.png
1414
helmChart:
1515
name: ceph-operations
1616
repository: oci://ghcr.io/cobaltcore-dev/cloud-storage-operations/charts
17-
version: 1.6.7
17+
version: 1.6.8
1818
options:
1919
- name: prometheusRules.create
2020
description: Create Prometheus rules

0 commit comments

Comments
 (0)