From: yite.gu Date: Thu, 12 Oct 2023 18:50:35 +0000 (+0800) Subject: os/bluestore: add bluestore fragmentation micros to prometheus X-Git-Tag: v19.0.0~220^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8fed26a185215d1a92c88544fd64f84a94bb106e;p=ceph.git os/bluestore: add bluestore fragmentation micros to prometheus 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 --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index ec03fcde14a..67f9fb92c6f 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6088,7 +6088,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",