Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AGENT-9736] Added debug logs #14650

Merged
merged 2 commits into from
Jun 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions disk/datadog_checks/disk/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def check(self, _):
self.devices_label = self._get_devices_label()

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

# Exclude disks with size less than min_disk_size
if disk_usage.total <= self._min_disk_size:
self.log.debug('Excluding device %s with total disk size %s', part.device, disk_usage.total)
if disk_usage.total > 0:
self.log.info('Excluding device %s with total disk size %s', part.device, disk_usage.total)
continue
Expand Down
Loading