]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set priority on perf counters 20006/head
authorJohn Spray <john.spray@redhat.com>
Thu, 18 Jan 2018 13:29:15 +0000 (13:29 +0000)
committerJohn Spray <john.spray@redhat.com>
Thu, 18 Jan 2018 13:29:15 +0000 (13:29 +0000)
...to cue MgrClient to pass these on to ceph-mgr

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

index f724e3f34dbf21abf83d5ebfe6de0511f5f4f57b..dbc7507210eecc078ced1f741498f550dfd5a22d 100644 (file)
@@ -135,6 +135,10 @@ int rgw_perf_start(CephContext *cct)
 {
   PerfCountersBuilder plb(cct, cct->_conf->name.to_str(), l_rgw_first, l_rgw_last);
 
+  // RGW emits comparatively few metrics, so let's be generous
+  // and mark them all USEFUL to get transmission to ceph-mgr by default.
+  plb.set_prio_default(PerfCountersBuilder::PRIO_USEFUL);
+
   plb.add_u64_counter(l_rgw_req, "req", "Requests");
   plb.add_u64_counter(l_rgw_failed_req, "failed_req", "Aborted requests");