]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: make stat_bytes and stat_bytes_used counters PRIO_USEFUL 18723/head
authorYao Zongyou <yaozongyou@vip.qq.com>
Tue, 31 Oct 2017 05:23:49 +0000 (13:23 +0800)
committerShinobu Kinjo <shinobu@redhat.com>
Sat, 4 Nov 2017 05:11:11 +0000 (14:11 +0900)
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>
(cherry picked from commit 40bb3c5f05b6f2a917a7e400f88677f41a9629a3)

src/osd/OSD.cc

index c2f563107a7685d15d795c65f5335e9bdc132d1d..c175a2812684b957460be1d0d06eeaad984ecebd 100644 (file)
@@ -3144,8 +3144,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(