aboutsummaryrefslogtreecommitdiff
path: root/collector/zfs_linux_test.go
Commit message (Collapse)AuthorAge
* read contents of objset file (#1632)Sudhar2872020-05-13
| | | | | * added objread functionality Signed-off-by: Sudharshann D <sudhar287@gmail.com>
* updates for zfsonlinux 0.7.5 (#779)Richard Elling2018-02-16
| | | | | | | | * 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
* Use uint64 in the ZFS collector (#714)Franz Pletz2018-01-06
| | | | ZFS metrics can also be unsigned 64-bit integers that won't fit in int64 and causes the whole collector to fail.
* Use int64 throughout the ZFS collector.Matthias Rampke2017-08-21
| | | | | | | | This avoids issues with integer overflows on 32-bit architectures. The Prometheus data format is float64, so regardless of the architecture we should handle large numbers. Fixes #629.
* ZFS Collector: Add zpool IO statisticsJoe Handzik2017-02-10
| | | | Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
* ZFS Collector: Refactor to use maps/slices and fewer globalsJoe Handzik2017-01-27
| | | | | | Removed all global types that were unnecessary, and refactored to use constructor-created values and inline values instead of globals. Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
* ZFS Collector: Add dmu_tx functionalityJoe Handzik2017-01-23
| | | | Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
* ZFS Collector: Add fm functionalityJoe Handzik2017-01-23
| | | | Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
* ZFS Collector: Add xuio_stats functionalityJoe Handzik2017-01-23
| | | | Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
* ZFS Collector: Add vdev_cache_stats functionalityJoe Handzik2017-01-23
| | | | Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
* ZFS Collector: Add zil functionalityJoe Handzik2017-01-23
| | | | Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
* ZFS Collector: Add zfetchstats functionalityJoe Handzik2017-01-23
| | | | Signed-Off-By: Joe Handzik <joseph.t.handzik@hpe.com>
* Style changes and cleanupCorey Stewart2017-01-08
| | | | | | This patch makes stylistic changes to error strings, unexports method names by lower casing them, removes unused dataSetMetric, and adds copyright/licence information. Signed-Off-By: Corey Stewart <stewa169@purdue.edu>
* Add a collector for ZFS, currently focussed on ARC stats.Christian Schwarz2017-01-08
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.