]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: add bluestore fragmentation micros to prometheus 54258/head
authoryite.gu <yitegu0@gmail.com>
Thu, 12 Oct 2023 18:50:35 +0000 (02:50 +0800)
committeryite.gu <yitegu0@gmail.com>
Tue, 17 Oct 2023 01:25:59 +0000 (09:25 +0800)
High fragmentation is one of the factors affecting performance decrease,
add it to prometheus, it helps to us monitor fragmentation changes.

Signed-off-by: Yite Gu <yitegu0@gmail.com>
(cherry picked from commit 8fed26a185215d1a92c88544fd64f84a94bb106e)

src/os/bluestore/BlueStore.cc

index aa14d0204f7aaad4f52b0f855a33def65b2b56eb..3086a303cb30489cd46d3fb6e02f0d46bb08616a 100644 (file)
@@ -5028,7 +5028,9 @@ void BlueStore::_init_logger()
            PerfCountersBuilder::PRIO_CRITICAL,
            unit_t(UNIT_BYTES));
   b.add_u64(l_bluestore_fragmentation, "fragmentation_micros",
-            "How fragmented bluestore free space is (free extents / max possible number of free extents) * 1000");
+            "How fragmented bluestore free space is (free extents / max possible number of free extents) * 1000",
+           "fbss",
+           PerfCountersBuilder::PRIO_USEFUL);
   b.add_u64(l_bluestore_alloc_unit, "alloc_unit",
            "allocation unit size in bytes",
            "au_b",