Skip to content

Commit d5dff92

Browse files
committed
Fix query for top Ceph pools by capacity used
This panel was only showing the most used pool instead of as many pools as configured with the ``$topk`` variable. Signed-off-by: Pierre Riteau <[email protected]>
1 parent 9f1bf56 commit d5dff92

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

etc/kayobe/kolla/config/grafana/dashboards/ceph/ceph_pools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@
657657
],
658658
"targets": [
659659
{
660-
"expr": "topk(1,((ceph_pool_stored / (ceph_pool_stored + ceph_pool_max_avail)) * on(pool_id) group_left(name) ceph_pool_metadata))",
660+
"expr": "topk($topk,((ceph_pool_stored / (ceph_pool_stored + ceph_pool_max_avail)) * on(pool_id) group_left(name) ceph_pool_metadata))",
661661
"format": "table",
662662
"hide": false,
663663
"instant": true,
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes Grafana panel of top Ceph pools by capacity used. This panel was only
5+
showing the most used pool instead of as many pools as configured with the
6+
``$topk`` variable.

0 commit comments

Comments
 (0)