diff --git a/ceph/datadog_checks/ceph/ceph.py b/ceph/datadog_checks/ceph/ceph.py index 7eeb7acfd78a2..d5236459511aa 100644 --- a/ceph/datadog_checks/ceph/ceph.py +++ b/ceph/datadog_checks/ceph/ceph.py @@ -88,7 +88,7 @@ def _publish(self, raw, func, keyspec, tags): def _extract_metrics(self, raw, tags): try: - raw_osd_perf = raw.get('osd_perf').get('osdstats', raw.get('osd_perf')) + raw_osd_perf = raw.get('osd_perf', {}).get('osdstats', raw.get('osd_perf')) for osdperf in raw_osd_perf['osd_perf_infos']: local_tags = tags + ['ceph_osd:osd%s' % osdperf['id']]