rochaporto / collectd-ceph

collectd plugins and dashboards for ceph
GNU General Public License v2.0
60 stars 65 forks source link

ceph: failed to get stats :: float division by zero for ceph OSD percentage used metrics #54

Open vishalbhosale04 opened 5 years ago

vishalbhosale04 commented 5 years ago

ceph: failed to get stats :: float division by zero :: Traceback (most recent call last):#012 File "/usr/lib/collectd/plugins/ceph/base.py", line 125, in read_callback#012 stats = self.get_stats(config)#012 File "/usr/lib/collectd/plugins/ceph/ceph_pg_plugin.py", line 73, in get_stats#012 data[ceph_cluster][osd_id]['percent_used'] = 100.0 * (osd['kb_used'] / float(osd['kb']))#012ZeroDivisionError: float division by zero