Skip to content

Commit bd8ffec

Browse files
committed
Added debug logs for
- every disk partition check from psutil - excluded disk with size less than configured min disk size Signed-off-by: Vivekanand Ilango <[email protected]>
1 parent edbff5e commit bd8ffec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

disk/datadog_checks/disk/disk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def check(self, _):
115115
self.devices_label = self._get_devices_label()
116116

117117
for part in psutil.disk_partitions(all=self._include_all_devices):
118+
self.log.debug('Checking device %s', part.device)
118119
# we check all exclude conditions
119120
if self.exclude_disk(part):
120121
self.log.debug('Excluding device %s', part.device)
@@ -142,6 +143,7 @@ def check(self, _):
142143

143144
# Exclude disks with size less than min_disk_size
144145
if disk_usage.total <= self._min_disk_size:
146+
self.log.debug('Excluding device %s with total disk size %s', part.device, disk_usage.total)
145147
if disk_usage.total > 0:
146148
self.log.info('Excluding device %s with total disk size %s', part.device, disk_usage.total)
147149
continue

0 commit comments

Comments
 (0)