From 563070dfaa37e00c4cb4ef418165765ccdecf037 Mon Sep 17 00:00:00 2001 From: Neha Ojha Date: Mon, 2 Dec 2019 16:32:07 -0800 Subject: [PATCH] os/bluestore/BlueStore.cc: set priorities for compression stats To allow compression statistics to be exported by ceph-mgr and make them appear on the dashboard. Fixes: https://tracker.ceph.com/issues/42961 Signed-off-by: Neha Ojha (cherry picked from commit 0657d95b2c0a214fb9e133e39c50968c97cc3b0d) --- src/os/bluestore/BlueStore.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 5a5f7160aefcd..253efb5a126fb 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -4338,12 +4338,14 @@ void BlueStore::_init_logger() b.add_u64(l_bluestore_stored, "bluestore_stored", "Sum for stored bytes"); b.add_u64(l_bluestore_compressed, "bluestore_compressed", - "Sum for stored compressed bytes"); + "Sum for stored compressed bytes", + "c", PerfCountersBuilder::PRIO_USEFUL, unit_t(UNIT_BYTES)); b.add_u64(l_bluestore_compressed_allocated, "bluestore_compressed_allocated", - "Sum for bytes allocated for compressed data"); + "Sum for bytes allocated for compressed data", + "c_a", PerfCountersBuilder::PRIO_USEFUL, unit_t(UNIT_BYTES)); b.add_u64(l_bluestore_compressed_original, "bluestore_compressed_original", - "Sum for original bytes that were compressed"); - + "Sum for original bytes that were compressed", + "c_o", PerfCountersBuilder::PRIO_USEFUL, unit_t(UNIT_BYTES)); b.add_u64(l_bluestore_onodes, "bluestore_onodes", "Number of onodes in cache"); b.add_u64_counter(l_bluestore_onode_hits, "bluestore_onode_hits", -- 2.39.5