]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Expose rgw perf counters
authorBoris Ranto <branto@redhat.com>
Fri, 6 Apr 2018 09:19:22 +0000 (11:19 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 6 Apr 2018 09:24:46 +0000 (11:24 +0200)
We are filtering rgw perf counters in mgr_module. This commit allows us
to expose rgw perf counters to the mgr modules. This also directly
exports the rgw perf counters via prometheus module since the module
calls the get_all_perf_counters method to get all the perf counters and
then it exports them.

Signed-off-by: Boris Ranto <branto@redhat.com>
src/pybind/mgr/mgr_module.py

index d5fb507c9fca830328bd4cba2ef2bd5e12e3c4aa..ce68b459d823ec0e4bad49aa647579400d783904 100644 (file)
@@ -604,7 +604,7 @@ class MgrModule(ceph_module.BaseMgrModule):
 
         for server in self.list_servers():
             for service in server['services']:
-                if service['type'] not in ("mds", "osd", "mon"):
+                if service['type'] not in ("rgw", "mds", "osd", "mon"):
                     continue
 
                 schema = self.get_perf_schema(service['type'], service['id'])