From: John Spray Date: Thu, 18 Jan 2018 13:29:15 +0000 (+0000) Subject: rgw: set priority on perf counters X-Git-Tag: v12.2.5~3^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c503e74973210e58237352a7da7dbcdb0b2ce00c;p=ceph.git rgw: set priority on perf counters ...to cue MgrClient to pass these on to ceph-mgr Signed-off-by: John Spray (cherry picked from commit 85144f583f758a1803a3d136be605b717c10084d) --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index e3edcc52eaa5..4e01d0c17def 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -138,6 +138,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");