From bb3d573a6ef96eaa59a4e344bcfeb63f648d765f Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Tue, 8 Jan 2019 10:00:55 +0000 Subject: [PATCH] pybind/mgr/diskprediction_cloud: only perfs for mon and osd needed Signed-off-by: Mykola Golub --- .../mgr/diskprediction_cloud/agent/metrics/ceph_mon_osd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/diskprediction_cloud/agent/metrics/ceph_mon_osd.py b/src/pybind/mgr/diskprediction_cloud/agent/metrics/ceph_mon_osd.py index c8d9ae92f70..d2c0c649fbf 100644 --- a/src/pybind/mgr/diskprediction_cloud/agent/metrics/ceph_mon_osd.py +++ b/src/pybind/mgr/diskprediction_cloud/agent/metrics/ceph_mon_osd.py @@ -210,7 +210,7 @@ class CephMonOsdAgent(MetricsAgent): def _collect_data(self): # process data and save to 'self.data' obj_api = ClusterAPI(self._module_inst) - perf_data = obj_api.module.get_all_perf_counters() + perf_data = obj_api.module.get_all_perf_counters(services=('mon', 'osd')) if not perf_data and not isinstance(perf_data, dict): self._logger.error('unable to get all perf counters') return -- 2.39.5