From: Sage Weil Date: Tue, 14 Mar 2017 20:13:47 +0000 (-0400) Subject: os/bluestore/BlueFS: log key bluefs metrics X-Git-Tag: v12.0.2~310^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e441b9e603b0f8edc792b8a84d3a855f79ca27ca;p=ceph.git os/bluestore/BlueFS: log key bluefs metrics Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 25ec6f84f27f..6b725eac818e 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -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); }