Skip to content

Instantly share code, notes, and snippets.

@roobre
Last active February 21, 2021 18:51
Show Gist options
  • Save roobre/23bed0ec883994b723b409dc8448c715 to your computer and use it in GitHub Desktop.
Save roobre/23bed0ec883994b723b409dc8448c715 to your computer and use it in GitHub Desktop.
nri-zfs-flex
# 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