* zfs: Allow space in dataset name
Signed-off-by: Mustafa Khafateh <m@khafateh.com>
* zfs: update fixture output for arm64
Signed-off-by: Mustafa Khafateh <m@khafateh.com>
* zfs: change pool3 name in fixture objsets
Signed-off-by: Mustafa Khafateh <m@khafateh.com>
* zfs: rename pool3 consistently in test case
Signed-off-by: Mustafa Khafateh <m@khafateh.com>
* zfs: Update amd64 e2e fixtures output
Signed-off-by: Mustafa Khafateh <m@khafateh.com>
---------
Signed-off-by: Mustafa Khafateh <m@khafateh.com>
* collector/zfs: Prevent `procfs` integer underflow
Prevent integer underflow when parsing the `procfs` file as it used a
`ParseUint` to parse signed values.
Fixes: #2766
---------
Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
* updates for zfsonlinux 0.7.5
* add constants for KSTAT_DATA_* types
* added e2e test for negative values represented by uint64 that can result from ZFS bugs
It is tested on FreeBSD 10.2-RELEASE and Linux (ZFS on Linux 0.6.5.4).
On FreeBSD, Solaris, etc. ZFS metrics are exposed through sysctls.
ZFS on Linux exposes the same metrics through procfs `/proc/spl/...`.
In addition to sysctl metrics, 'computed metrics' are exposed by
the collector, which are based on several sysctl values.
There is some conditional logic involved in computing these metrics
which cannot be easily mapped to PromQL.
Not all 92 ARC sysctls are exposed right now but this can be changed
with one additional LOC each.