]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: add rbd-mirror to get_all_perf_counters by default
authorMykola Golub <mgolub@suse.com>
Tue, 8 Jan 2019 10:07:55 +0000 (10:07 +0000)
committerMykola Golub <mgolub@suse.com>
Thu, 10 Jan 2019 10:36:45 +0000 (10:36 +0000)
This effectively enables rbd-mirror stats for modules like prometheus or
influx.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/pybind/mgr/mgr_module.py

index 30df9621f47114424bee1f9b0c87e2d4dce0ef9f..4c3bc486014ea8805981ce6725e30713bee14753 100644 (file)
@@ -940,7 +940,8 @@ class MgrModule(ceph_module.BaseMgrModule):
             return (0, 0)
 
     def get_all_perf_counters(self, prio_limit=PRIO_USEFUL,
-                              services=("mds", "mon", "osd", "rgw")):
+                              services=("mds", "mon", "osd",
+                                        "rbd-mirror", "rgw")):
         """
         Return the perf counters currently known to this ceph-mgr
         instance, filtered by priority equal to or greater than `prio_limit`.