]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS: log key bluefs metrics
authorSage Weil <sage@redhat.com>
Tue, 14 Mar 2017 20:13:47 +0000 (16:13 -0400)
committerSage Weil <sage@redhat.com>
Tue, 21 Mar 2017 20:06:44 +0000 (15:06 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueFS.cc

index 25ec6f84f27f23a943287fad1a295b7194e3e85a..6b725eac818eede11c619ffe65473e62557d6fa9 100644 (file)
@@ -53,7 +53,7 @@ BlueFS::~BlueFS()
 
 void BlueFS::_init_logger()
 {
-  PerfCountersBuilder b(cct, "BlueFS",
+  PerfCountersBuilder b(cct, "bluefs",
                         l_bluefs_first, l_bluefs_last);
   b.add_u64_counter(l_bluefs_gift_bytes, "gift_bytes",
                    "Bytes gifted from BlueStore");
@@ -76,15 +76,15 @@ void BlueFS::_init_logger()
   b.add_u64_counter(l_bluefs_log_compactions, "log_compactions",
                    "Compactions of the metadata log");
   b.add_u64_counter(l_bluefs_logged_bytes, "logged_bytes",
-                   "Bytes written to the metadata log");
+                   "Bytes written to the metadata log", "j");
   b.add_u64_counter(l_bluefs_files_written_wal, "files_written_wal",
                    "Files written to WAL");
   b.add_u64_counter(l_bluefs_files_written_sst, "files_written_sst",
                    "Files written to SSTs");
   b.add_u64_counter(l_bluefs_bytes_written_wal, "bytes_written_wal",
-                   "Bytes written to WAL");
+                   "Bytes written to WAL", "wal");
   b.add_u64_counter(l_bluefs_bytes_written_sst, "bytes_written_sst",
-                   "Bytes written to SSTs");
+                   "Bytes written to SSTs", "sst");
   logger = b.create_perf_counters();
   cct->get_perfcounters_collection()->add(logger);
 }