]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Sanitize rgw perf counter names 21269/head
authorBoris Ranto <branto@redhat.com>
Fri, 6 Apr 2018 10:02:41 +0000 (12:02 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 6 Apr 2018 10:02:44 +0000 (12:02 +0200)
The rgw perf counters are currently being named by the rgw names (i.e.
client.rgw.<name>.<something>). This changes their names to something
more sane like rgw.<something>. This also makes data exported by
prometheus ceph-mgr module a lot more useful as you do not need to use
the rgw name to get the metrics for an rgw.

Signed-off-by: Boris Ranto <branto@redhat.com>
src/rgw/rgw_common.cc

index bc596cc265c2d0fc14064e4a898b7f3484702681..d0907b87367d7ae2076dcc4be561cb6b8ea4933a 100644 (file)
@@ -137,7 +137,7 @@ 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.