Skip to content

Commit

Permalink
Log error when skipping disk latency metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
dixonscottr committed Jan 18, 2018
1 parent 20b7562 commit 1b2786c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disk/datadog_checks/disk/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ def collect_latency_metrics(self):
read_time_pct, device_name=disk_name)
self.rate(self.METRIC_DISK.format('write_time_pct'),
write_time_pct, device_name=disk_name)
except AttributeError:
except AttributeError as e:
# Some OS don't return read_time/write_time fields
# http://psutil.readthedocs.io/en/latest/#psutil.disk_io_counters
self.log.debug("Latency metrics not collected for {0}".format(disk_name))
self.log.debug("Latency metrics not collected for {0}: {1}".format(disk_name, e))

# no psutil, let's use df
def collect_metrics_manually(self):
Expand Down

0 comments on commit 1b2786c

Please sign in to comment.