From: Boris Ranto Date: Fri, 6 Apr 2018 09:19:22 +0000 (+0200) Subject: mgr: Expose rgw perf counters X-Git-Tag: v12.2.5~3^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4ec51afd79f2000d7c4fd9e30042b974285bf908;p=ceph.git mgr: Expose rgw perf counters 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 (cherry picked from commit f95f37c63b090c42df693ec60b37cfbbd10c8b45) --- diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index a5e8889bb7c..1d75b6f431b 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -534,7 +534,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'])