-
Notifications
You must be signed in to change notification settings - Fork 814
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] AgentCheck for Disk metrics 🎉 #1596
Conversation
dcd56e1
to
85b24b2
Compare
4be7581
to
25d3acc
Compare
list devices. A 'device' is a list with fields corresponding to the | ||
output of df output on each platform. | ||
""" | ||
all_devices = [l.strip().split() for l in df_output.split("\n")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it doesn't matter in this case as it's only for linux but you should use:
df_output.splitlines()
instead. It's better practice as it should work on all platforms.
bd11bf1
to
cba96b7
Compare
I addressed all your comments, moved
|
cba96b7
to
4d31fd1
Compare
Thanks for making the updates. Merging. |
This commit is the first step towards the annihilation of the old `Check` hidden in `checks/system/{unix,win32}.py`! It's time to launch the final assault of `Check`. `AgentCheck` shall triumph! Add a `checks.d/disk.py` checks, which uses psutil when available to get disk metrics (same than the previous `disk` checks), and otherwise get the same metrics with `df`. It has a small integration test, just to check that metrics exist, and more precise mock tests. This new check is enabled by default, and the old `disk` checks are disabled.
4d31fd1
to
c85eadf
Compare
Changes Unknown when pulling c85eadf on quentin/disk-check-filesystem into ** on master**. |
This commit is the first step towards the annihilation of the old
Check
hidden in
checks/system/{unix,win32}.py
!It's time to launch the final assault of
Check
.AgentCheck
shall triumph!Add a
checks.d/disk.py
checks, which uses psutil when available to getdisk metrics (same than the previous
disk
checks), and otherwiseget the same metrics with
df
.It has a small integration test, just to check that metrics exist, and
more precise mock tests.
This new check is enabled by default, and the old
disk
checks aredeleted.
Fix #568