Last active
February 21, 2021 18:51
-
-
Save nadiamoe/23bed0ec883994b723b409dc8448c715 to your computer and use it in GitHub Desktop.
nri-zfs-flex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# An nri-flex spec to collect zfs data | |
integrations: | |
- name: nri-flex | |
config: | |
name: zfs | |
apis: | |
- name: Zpool | |
commands: | |
- run: 'zpool list -H -p -o name,health,size,expandsize,allocated,free,fragmentation,capacity,dedup,comment,version' | |
split: horizontal | |
split_by: \s+ | |
set_header: [name,health,size,expandsize,allocated,free,fragmentationPercent,capacityPercent,dedup,comment,version] | |
- name: Zfs | |
commands: | |
- run: zfs list -H -p -o space,type,compressratio -t all | |
split: horizontal | |
split_by: \s+ | |
set_header: [name,available,used,usedSnap,usedDds,usedRefReserv,usedChild,type,compressratio] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment