X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Frgw%2Frgw_common.cc;h=fd14b26b14ead1357a0eb754bda7df58550d77e2;hb=94b1876350060563a6ac95339df15f95fd3ebadc;hp=e3edcc52eaa597aec3a1a59d1425110d695e52c6;hpb=4832b6f0acade977670a37c20ff5dbe69e727416;p=ceph.git diff --git a/ceph/src/rgw/rgw_common.cc b/ceph/src/rgw/rgw_common.cc index e3edcc52e..fd14b26b1 100644 --- a/ceph/src/rgw/rgw_common.cc +++ b/ceph/src/rgw/rgw_common.cc @@ -136,7 +136,11 @@ rgw_http_errors rgw_http_swift_errors({ int rgw_perf_start(CephContext *cct) { - PerfCountersBuilder plb(cct, cct->_conf->name.to_str(), l_rgw_first, l_rgw_last); + PerfCountersBuilder plb(cct, "rgw", 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");