-
Notifications
You must be signed in to change notification settings - Fork 3
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
Large changes #4
base: master
Are you sure you want to change the base?
Conversation
Thanks for this, looking great! Just an FYI, BTRFS 5.10 adds another line to be parsed like 5.7 did, causing it to break it again. (Unless you've handled it differently) Since it looks like you haven't changed how that section is handled, the quick and dirty fix, though there's gotta be a better solution:
|
I don't have any boxes running 5.10 yet, so I didn't realize that was a thing...what command produces the |
btrfs fi usage. It's the same exact problem/solution you worked around HERE by using my solution. In my hack-y solution, (still using a modification of the original script, not yours yet) I just added another line to that:
Here's my BTRFS output:
|
So this should work then:
|
Yup, that should do it! If I was doing it, I'd prefer to iterate through and only parse lines I knew how to parse, rather than excluding lines I didn't know how to parse, which would make it much more future-proof, but that's a lot more work and potential code bloat, so /shrug. At any rate, that should work, as it's functionally equivalent to what I'm running on a 5.10 box fight now. |
It's really unfortunate that, generally, btrfs (and zfs) have terrible reporting tools. Having to do all this string parsing just to get useful data is a real bummer. (Can you imagine if there was a You're right to want to switch from exclusive to inclusive filtering (and I kinda did that with the scrub parsing), but that's a lot of extra work that I don't really have time for right now. |
…ectly, and clean up some flake8 errors
Signed-off-by: John Seekins <[email protected]>
Signed-off-by: John Seekins <[email protected]>
Signed-off-by: John Seekins <[email protected]>
.value
metrics actually show the proper metricflake8
passestelegraf
user the ability to delete/modify btrfs volumes)Example new output: