Skip to content

Commit

Permalink
Fix response handling (DataDog#6152)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored Mar 25, 2020
1 parent 76da148 commit 4654892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ceph/datadog_checks/ceph/ceph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']]
Expand Down

0 comments on commit 4654892

Please sign in to comment.