]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
mon: added debug messages to aid in diagnostics
authorPaul Cuzner <pcuzner@redhat.com>
Thu, 6 Jul 2017 23:25:23 +0000 (11:25 +1200)
committerZack Cerza <zack@redhat.com>
Tue, 11 Jul 2017 22:39:04 +0000 (16:39 -0600)
collectors/mon.py

index 7534326f27186a647e17ca02516ec8490a5d0f19..49094758d542fa411cc54b0930f7ea1baff89bdc 100644 (file)
@@ -258,6 +258,7 @@ class Mon(BaseCollector):
         pool_list = self.get_pools()
         mon_list = sorted(monitors.keys())
         my_pools = Mon._select_pools(pool_list, mon_list)
+        self.logger.debug("Pools to scan : {}".format(','.join(my_pools)))
         threads = []
 
         start = time.time()
@@ -267,7 +268,7 @@ class Mon(BaseCollector):
             thread.start()
             threads.append(thread)
 
-        # wait for all threads
+        # wait for all threads to complete
         for thread in threads:
             thread.join()
 
@@ -275,6 +276,7 @@ class Mon(BaseCollector):
         self.elapsed_log_msg("rbd scans", (end - start))
 
         total_rbds = sum([thread.num_rbds for thread in threads])
+        self.logger.debug("total rbds found : {}".format(total_rbds))
 
         for thread in threads:
             del thread