]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: make stat_bytes and stat_bytes_used counters PRIO_USEFUL
authorYao Zongyou <yaozongyou@vip.qq.com>
Tue, 31 Oct 2017 05:23:49 +0000 (13:23 +0800)
committerYao Zongyou <yaozongyou@vip.qq.com>
Tue, 31 Oct 2017 05:23:49 +0000 (13:23 +0800)
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 <yaozongyou@vip.qq.com>
src/osd/OSD.cc

index 03d0236df2761a1a7a42ba1e6ddd6ed98d8d8e02..5447ac2df669f9dde2774e1af83c13d3cbca94b5 100644 (file)
@@ -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(