From: Yao Zongyou Date: Tue, 31 Oct 2017 05:23:49 +0000 (+0800) Subject: osd: make stat_bytes and stat_bytes_used counters PRIO_USEFUL X-Git-Tag: v13.0.1~327^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18637%2Fhead;p=ceph.git osd: make stat_bytes and stat_bytes_used counters PRIO_USEFUL These two counters should be reported to mgr because the dashboard plugin needing them to display osd detailed information. Fixes: http://tracker.ceph.com/issues/21981 Signed-off-by: Yao Zongyou --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 03d0236df27..5447ac2df66 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -3158,8 +3158,12 @@ void OSD::create_logger() l_osd_map_bl_cache_miss, "osd_map_bl_cache_miss", "OSDMap buffer cache misses"); - osd_plb.add_u64(l_osd_stat_bytes, "stat_bytes", "OSD size"); - osd_plb.add_u64(l_osd_stat_bytes_used, "stat_bytes_used", "Used space"); + osd_plb.add_u64( + l_osd_stat_bytes, "stat_bytes", "OSD size", "size", + PerfCountersBuilder::PRIO_USEFUL); + osd_plb.add_u64( + l_osd_stat_bytes_used, "stat_bytes_used", "Used space", "used", + PerfCountersBuilder::PRIO_USEFUL); osd_plb.add_u64(l_osd_stat_bytes_avail, "stat_bytes_avail", "Available space"); osd_plb.add_u64_counter(