From: Sage Weil Date: Tue, 4 Apr 2017 20:58:15 +0000 (-0400) Subject: osdc/Objecter: set perf counter priorities X-Git-Tag: v12.0.3~71^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fe109b438c377b3a5a58e04b756b2ca65e666740;p=ceph.git osdc/Objecter: set perf counter priorities Signed-off-by: Sage Weil --- diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index b9a7a45ff023..134fd7830800 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -242,8 +242,8 @@ void Objecter::init() if (!logger) { PerfCountersBuilder pcb(cct, "objecter", l_osdc_first, l_osdc_last); - pcb.add_u64(l_osdc_op_active, "op_active", - "Operations active", "actv"); + pcb.add_u64(l_osdc_op_active, "op_active", "Operations active", "actv", + PerfCountersBuilder::PRIO_CRITICAL); pcb.add_u64(l_osdc_op_laggy, "op_laggy", "Laggy operations"); pcb.add_u64_counter(l_osdc_op_send, "op_send", "Sent operations"); pcb.add_u64_counter(l_osdc_op_send_bytes, "op_send_bytes", "Sent data"); @@ -251,12 +251,12 @@ void Objecter::init() pcb.add_u64_counter(l_osdc_op_reply, "op_reply", "Operation reply"); pcb.add_u64_counter(l_osdc_op, "op", "Operations"); - pcb.add_u64_counter(l_osdc_op_r, "op_r", - "Read operations", "rd"); - pcb.add_u64_counter(l_osdc_op_w, "op_w", - "Write operations", "wr"); - pcb.add_u64_counter(l_osdc_op_rmw, "op_rmw", - "Read-modify-write operations", "rdwr"); + pcb.add_u64_counter(l_osdc_op_r, "op_r", "Read operations", "rd", + PerfCountersBuilder::PRIO_CRITICAL); + pcb.add_u64_counter(l_osdc_op_w, "op_w", "Write operations", "wr", + PerfCountersBuilder::PRIO_CRITICAL); + pcb.add_u64_counter(l_osdc_op_rmw, "op_rmw", "Read-modify-write operations", + "rdwr", PerfCountersBuilder::PRIO_INTERESTING); pcb.add_u64_counter(l_osdc_op_pg, "op_pg", "PG operation"); pcb.add_u64_counter(l_osdc_osdop_stat, "osdop_stat", "Stat operations");