annotate files/zfs_metrics/zfs.mtail @ 145:ee0384eebee5

minor
author drewp@bigasterisk.com
date Sat, 11 Mar 2023 11:22:48 -0800
parents 69058ad170be
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
118
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
1 gauge zfs_space_avail by name
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
2 gauge zfs_space_used by name
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
3 gauge zfs_space_used_snap by name
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
4 gauge zfs_space_used_ds by name
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
5 gauge zfs_space_used_ref_reserv by name
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
6 gauge zfs_space_used_child by name
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
7
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
8 # output of `zfs list -Hp -o space`
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
9 /(?P<name>\S+)\s+(?P<f0>\d+)\s+(?P<f1>\d+)\s+(?P<f2>\d+)\s+(?P<f3>\d+)\s+(?P<f4>\d+)\s+(?P<f5>\d+)/ {
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
10 zfs_space_avail[$name] = $f0
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
11 zfs_space_used[$name] = $f1
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
12 zfs_space_used_snap[$name] = $f2
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
13 zfs_space_used_ds[$name] = $f3
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
14 zfs_space_used_ref_reserv[$name] = $f4
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
15 zfs_space_used_child[$name] = $f5
69058ad170be watch output from `zfs list -o space` as metrics
drewp@bigasterisk.com
parents:
diff changeset
16 }