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

[disk] backward compatibility with old Disk check #1710

Merged
merged 1 commit into from
Jun 17, 2015

Conversation

degemer
Copy link
Member

@degemer degemer commented Jun 17, 2015

The new disk check was ignoring by default tmpfs disks and some others,
breaking compatibility with the old check.

It is fixed by filtering on device name (exclusion on '' and 'none') and total
disk usage (!= 0), and setting all_partitions to True for psutil.
The new all_partitions option will send metrics from the non excluded disks
with 0 total disk usage.

@degemer degemer force-pushed the quentin/disk-check-compatibility branch 3 times, most recently from 0cd5c81 to 1e4eee5 Compare June 17, 2015 20:20
The new disk check was ignoring by default tmpfs disks and some others,
breaking compatibility with the old check.

It is fixed by filtering on device name (exclusion on '' and 'none') and total
disk usage (!= 0), and setting all_partitions to True for psutil.
The new all_partitions option will send metrics from the non excluded disks
with 0 total disk usage.
@degemer degemer force-pushed the quentin/disk-check-compatibility branch from 1e4eee5 to c56015f Compare June 17, 2015 20:29
@remh
Copy link
Contributor

remh commented Jun 17, 2015

LGTM!

remh added a commit that referenced this pull request Jun 17, 2015
[disk] backward compatibility with old Disk check
@remh remh merged commit bbd45de into master Jun 17, 2015
@degemer degemer deleted the quentin/disk-check-compatibility branch June 17, 2015 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants