]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: upgrade a bunch of perf counters to PRIO_USEFUL
authorJohn Spray <john.spray@redhat.com>
Wed, 13 Sep 2017 11:07:50 +0000 (07:07 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 27 Sep 2017 18:20:21 +0000 (14:20 -0400)
These are broadly the OSD-wide IO stats, which happen
to also be the ones that were named in the
prometheus plugin until I changed it to be
priority-based.

Signed-off-by: John Spray <john.spray@redhat.com>
src/osd/OSD.cc

index 925196c6422a6bc5f3aca13717367553842e4ab0..763e670515b3b31de9805917aa6b918e95e3895f 100644 (file)
@@ -2942,6 +2942,9 @@ void OSD::create_logger()
   };
 
 
+  // All the basic OSD operation stats are to be considered useful
+  osd_plb.set_prio_default(PerfCountersBuilder::PRIO_USEFUL);
+
   osd_plb.add_u64(
     l_osd_op_wip, "op_wip",
     "Replication operations currently being processed (primary)");
@@ -3029,6 +3032,10 @@ void OSD::create_logger()
     l_osd_op_rw_prepare_lat, "op_rw_prepare_latency",
     "Latency of read-modify-write operations (excluding queue time and wait for finished)");
 
+  // Now we move on to some more obscure stats, revert to assuming things
+  // are low priority unless otherwise specified.
+  osd_plb.set_prio_default(PerfCountersBuilder::PRIO_DEBUGONLY);
+
   osd_plb.add_time_avg(l_osd_op_before_queue_op_lat, "op_before_queue_op_lat",
     "Latency of IO before calling queue(before really queue into ShardedOpWq)"); // client io before queue op_wq latency
   osd_plb.add_time_avg(l_osd_op_before_dequeue_op_lat, "op_before_dequeue_op_lat",