-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add dataset metrics to zfs input #8383
Conversation
Wow, excellent ! This is exactly what I need ! Very thanks @zozoh94 ! |
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.
Nice work. However, I think we can simplify this a bit more, see comments.
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.
Almost there. :-) Could you please comment or fix the one comment on logging dropped lines!
I have one more general question tough: Your PR adds dataset-collection to FreeBSD but it sould also work on e.g. Linux. What about those poor souls? Do you think you can make it also work on Linux? I'll be able to test it here...
@srebhan I added a log but I'm sorry but I have no experience with ZFS on linux. |
Hey @zozoh94, I think linux behaves exactly the same as *BSD there. When calling
as output. So I guess it's pretty much the same you're seeing on FreeBSD!? However, I realized the Linux code relies on directly reading |
603b454
to
dc49e7a
Compare
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.
Looks good. Thank you!
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.
Looks pretty good. just some minor comments
Thanks! |
FWIW, the freebsd-code also works with linux, see a crappy port at toelke@fae76e8 |
Required for all PRs: