]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueStore.cc: set priorities for compression stats 32845/head
authorNeha Ojha <nojha@redhat.com>
Tue, 3 Dec 2019 00:32:07 +0000 (16:32 -0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 16:23:39 +0000 (17:23 +0100)
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 <nojha@redhat.com>
(cherry picked from commit 0657d95b2c0a214fb9e133e39c50968c97cc3b0d)

src/os/bluestore/BlueStore.cc

index 5a5f7160aefcde5d60ddfcdad057a9c8bc947456..253efb5a126fb7d8390fe14aebd38ef0bffb6023 100644 (file)
@@ -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",